Classroom Iskicked sütunu eklendi
This commit is contained in:
parent
9f5eead354
commit
ed68bcee28
5 changed files with 22 additions and 4 deletions
|
|
@ -219,6 +219,7 @@ public class ClassroomAppService : PlatformAppService, IClassroomAppService
|
||||||
classroomSettings?.DefaultMicrophoneState == "muted",
|
classroomSettings?.DefaultMicrophoneState == "muted",
|
||||||
classroomSettings?.DefaultCameraState == "off",
|
classroomSettings?.DefaultCameraState == "off",
|
||||||
false, // HandRaised
|
false, // HandRaised
|
||||||
|
false, // isKicked
|
||||||
true // isActive
|
true // isActive
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -920,6 +920,8 @@ public class PlatformDbContext :
|
||||||
|
|
||||||
b.Property(x => x.UserName).IsRequired().HasMaxLength(100);
|
b.Property(x => x.UserName).IsRequired().HasMaxLength(100);
|
||||||
b.Property(x => x.ConnectionId).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.SessionId);
|
||||||
b.HasIndex(x => x.UserId);
|
b.HasIndex(x => x.UserId);
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||||
namespace Kurs.Platform.Migrations
|
namespace Kurs.Platform.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PlatformDbContext))]
|
[DbContext(typeof(PlatformDbContext))]
|
||||||
[Migration("20250830114522_Initial")]
|
[Migration("20250831164324_Initial")]
|
||||||
partial class Initial
|
partial class Initial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
@ -1817,7 +1817,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<bool>("IsActive")
|
b.Property<bool>("IsActive")
|
||||||
.HasColumnType("bit");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
b.Property<bool>("IsAudioMuted")
|
b.Property<bool>("IsAudioMuted")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
@ -1831,6 +1833,11 @@ namespace Kurs.Platform.Migrations
|
||||||
b.Property<bool>("IsHandRaised")
|
b.Property<bool>("IsHandRaised")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<bool>("IsKicked")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
b.Property<bool>("IsTeacher")
|
b.Property<bool>("IsTeacher")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
|
@ -1996,7 +1996,8 @@ namespace Kurs.Platform.Migrations
|
||||||
IsAudioMuted = table.Column<bool>(type: "bit", nullable: false),
|
IsAudioMuted = table.Column<bool>(type: "bit", nullable: false),
|
||||||
IsVideoMuted = table.Column<bool>(type: "bit", nullable: false),
|
IsVideoMuted = table.Column<bool>(type: "bit", nullable: false),
|
||||||
IsHandRaised = 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),
|
JoinTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
ConnectionId = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
ConnectionId = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
|
@ -1814,7 +1814,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<bool>("IsActive")
|
b.Property<bool>("IsActive")
|
||||||
.HasColumnType("bit");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
b.Property<bool>("IsAudioMuted")
|
b.Property<bool>("IsAudioMuted")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
@ -1828,6 +1830,11 @@ namespace Kurs.Platform.Migrations
|
||||||
b.Property<bool>("IsHandRaised")
|
b.Property<bool>("IsHandRaised")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<bool>("IsKicked")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
b.Property<bool>("IsTeacher")
|
b.Property<bool>("IsTeacher")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue