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:
@@ -9,8 +9,11 @@ public class GroupAdminsConfiguration : IEntityTypeConfiguration<GroupAdmins>
|
||||
public void Configure(EntityTypeBuilder<GroupAdmins> builder)
|
||||
{
|
||||
builder.HasKey(e => e.Id);
|
||||
builder.HasIndex(e => new { e.GroupId, e.UserId }).IsUnique();
|
||||
builder.HasOne<Govor.Domain.Models.Users.User>().WithMany()
|
||||
.HasForeignKey(e => e.UserId).OnDelete(DeleteBehavior.Cascade);
|
||||
|
||||
builder.Property(e => e.UserId).IsRequired();
|
||||
builder.Property(e => e.GroupId).IsRequired();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user