Classroom Iskicked sütunu eklendi

This commit is contained in:
Sedat Öztürk 2025-08-31 19:43:54 +03:00
parent 9f5eead354
commit ed68bcee28
5 changed files with 22 additions and 4 deletions

View file

@ -219,6 +219,7 @@ public class ClassroomAppService : PlatformAppService, IClassroomAppService
classroomSettings?.DefaultMicrophoneState == "muted",
classroomSettings?.DefaultCameraState == "off",
false, // HandRaised
false, // isKicked
true // isActive
);

View file

@ -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);

View file

@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace Kurs.Platform.Migrations
{
[DbContext(typeof(PlatformDbContext))]
[Migration("20250830114522_Initial")]
[Migration("20250831164324_Initial")]
partial class Initial
{
/// <inheritdoc />
@ -1817,7 +1817,9 @@ namespace Kurs.Platform.Migrations
.HasColumnName("DeletionTime");
b.Property<bool>("IsActive")
.HasColumnType("bit");
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(true);
b.Property<bool>("IsAudioMuted")
.HasColumnType("bit");
@ -1831,6 +1833,11 @@ namespace Kurs.Platform.Migrations
b.Property<bool>("IsHandRaised")
.HasColumnType("bit");
b.Property<bool>("IsKicked")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
b.Property<bool>("IsTeacher")
.HasColumnType("bit");

View file

@ -1996,7 +1996,8 @@ namespace Kurs.Platform.Migrations
IsAudioMuted = table.Column<bool>(type: "bit", nullable: false),
IsVideoMuted = table.Column<bool>(type: "bit", nullable: false),
IsHandRaised = table.Column<bool>(type: "bit", nullable: false),
IsActive = table.Column<bool>(type: "bit", nullable: false),
IsKicked = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
JoinTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ConnectionId = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),

View file

@ -1814,7 +1814,9 @@ namespace Kurs.Platform.Migrations
.HasColumnName("DeletionTime");
b.Property<bool>("IsActive")
.HasColumnType("bit");
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(true);
b.Property<bool>("IsAudioMuted")
.HasColumnType("bit");
@ -1828,6 +1830,11 @@ namespace Kurs.Platform.Migrations
b.Property<bool>("IsHandRaised")
.HasColumnType("bit");
b.Property<bool>("IsKicked")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
b.Property<bool>("IsTeacher")
.HasColumnType("bit");