Chat controller

This commit is contained in:
2025-05-02 12:07:09 +08:00
parent 8b5ca265b8
commit da6a891b5f
8 changed files with 2696 additions and 74 deletions

View File

@ -176,7 +176,7 @@ public class AppDatabase(
.OnDelete(DeleteBehavior.Cascade);
modelBuilder.Entity<Chat.ChatMember>()
.HasKey(pm => new { pm.ChatRoom, pm.AccountId });
.HasKey(pm => new { pm.ChatRoomId, pm.AccountId });
modelBuilder.Entity<Chat.ChatMember>()
.HasOne(pm => pm.ChatRoom)
.WithMany(p => p.Members)