From ed68bcee28356706538b0af72c798ccc4b257009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96zt=C3=BCrk?= Date: Sun, 31 Aug 2025 19:43:54 +0300 Subject: [PATCH] =?UTF-8?q?Classroom=20Iskicked=20s=C3=BCtunu=20eklendi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Classroom/ClassroomAppService.cs | 1 + .../EntityFrameworkCore/PlatformDbContext.cs | 2 ++ ...Designer.cs => 20250831164324_Initial.Designer.cs} | 11 +++++++++-- ...830114522_Initial.cs => 20250831164324_Initial.cs} | 3 ++- .../Migrations/PlatformDbContextModelSnapshot.cs | 9 ++++++++- 5 files changed, 22 insertions(+), 4 deletions(-) rename api/src/Kurs.Platform.EntityFrameworkCore/Migrations/{20250830114522_Initial.Designer.cs => 20250831164324_Initial.Designer.cs} (99%) rename api/src/Kurs.Platform.EntityFrameworkCore/Migrations/{20250830114522_Initial.cs => 20250831164324_Initial.cs} (99%) diff --git a/api/src/Kurs.Platform.Application/Classroom/ClassroomAppService.cs b/api/src/Kurs.Platform.Application/Classroom/ClassroomAppService.cs index 2df1b8f1..61e66ea1 100644 --- a/api/src/Kurs.Platform.Application/Classroom/ClassroomAppService.cs +++ b/api/src/Kurs.Platform.Application/Classroom/ClassroomAppService.cs @@ -219,6 +219,7 @@ public class ClassroomAppService : PlatformAppService, IClassroomAppService classroomSettings?.DefaultMicrophoneState == "muted", classroomSettings?.DefaultCameraState == "off", false, // HandRaised + false, // isKicked true // isActive ); diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs b/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs index 83383037..6cadb824 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs @@ -920,6 +920,8 @@ public class PlatformDbContext : b.Property(x => x.UserName).IsRequired().HasMaxLength(100); b.Property(x => x.ConnectionId).HasMaxLength(100); + b.Property(x => x.IsActive).HasDefaultValue(true); + b.Property(x => x.IsKicked).HasDefaultValue(false); b.HasIndex(x => x.SessionId); b.HasIndex(x => x.UserId); diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250830114522_Initial.Designer.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250831164324_Initial.Designer.cs similarity index 99% rename from api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250830114522_Initial.Designer.cs rename to api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250831164324_Initial.Designer.cs index 39c758a5..60ce289d 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250830114522_Initial.Designer.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250831164324_Initial.Designer.cs @@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; namespace Kurs.Platform.Migrations { [DbContext(typeof(PlatformDbContext))] - [Migration("20250830114522_Initial")] + [Migration("20250831164324_Initial")] partial class Initial { /// @@ -1817,7 +1817,9 @@ namespace Kurs.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("IsActive") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(true); b.Property("IsAudioMuted") .HasColumnType("bit"); @@ -1831,6 +1833,11 @@ namespace Kurs.Platform.Migrations b.Property("IsHandRaised") .HasColumnType("bit"); + b.Property("IsKicked") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + b.Property("IsTeacher") .HasColumnType("bit"); diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250830114522_Initial.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250831164324_Initial.cs similarity index 99% rename from api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250830114522_Initial.cs rename to api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250831164324_Initial.cs index fa497082..de540d8a 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250830114522_Initial.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250831164324_Initial.cs @@ -1996,7 +1996,8 @@ namespace Kurs.Platform.Migrations IsAudioMuted = table.Column(type: "bit", nullable: false), IsVideoMuted = table.Column(type: "bit", nullable: false), IsHandRaised = table.Column(type: "bit", nullable: false), - IsActive = table.Column(type: "bit", nullable: false), + IsKicked = table.Column(type: "bit", nullable: false, defaultValue: false), + IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), JoinTime = table.Column(type: "datetime2", nullable: false), ConnectionId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs index 533d4959..0b5888eb 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs @@ -1814,7 +1814,9 @@ namespace Kurs.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("IsActive") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(true); b.Property("IsAudioMuted") .HasColumnType("bit"); @@ -1828,6 +1830,11 @@ namespace Kurs.Platform.Migrations b.Property("IsHandRaised") .HasColumnType("bit"); + b.Property("IsKicked") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + b.Property("IsTeacher") .HasColumnType("bit");