mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-17 12:59:25 +00:00
Add primitive groups and required channel
Adds server-side group and channel management, private invitations, member moderation, avatar handling, and required-channel configuration. This change also introduces SignalR group profile/member notifications, updates registration to atomically join required channels, and adds EF migration and test coverage for group membership, permissions, and invitation expiry rules.
This commit is contained in:
@@ -12,9 +12,11 @@ public class ChatGroupConfigurator : IEntityTypeConfiguration<ChatGroup>
|
||||
|
||||
builder.Property(e => e.Name).IsRequired().HasMaxLength(100);
|
||||
builder.Property(e => e.Description).HasMaxLength(500);
|
||||
builder.HasOne<Govor.Domain.Models.Users.User>().WithMany()
|
||||
.HasForeignKey(e => e.OwnerUserId).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
builder.HasMany(e => e.Members)
|
||||
.WithOne()
|
||||
.WithOne(e => e.ChatGroup)
|
||||
.HasForeignKey(e => e.GroupId)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
|
||||
@@ -28,4 +30,4 @@ public class ChatGroupConfigurator : IEntityTypeConfiguration<ChatGroup>
|
||||
.HasForeignKey(e => e.GroupId)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user