mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-17 04:58:46 +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:
@@ -0,0 +1,16 @@
|
||||
using Govor.Domain.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Govor.Domain.Configurations;
|
||||
|
||||
public class ServerCommunitySettingsConfiguration : IEntityTypeConfiguration<ServerCommunitySettings>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<ServerCommunitySettings> builder)
|
||||
{
|
||||
builder.HasKey(s => s.Id);
|
||||
builder.Property(s => s.Id).ValueGeneratedNever();
|
||||
builder.HasOne<ChatGroup>().WithMany().HasForeignKey(s => s.RequiredChannelId).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasData(new ServerCommunitySettings { Id = 1, AllowLeave = true });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user