feat(guild): add Guild aggregate schema + migration

This commit is contained in:
gamer147
2026-06-27 11:02:29 -04:00
parent 3a52115551
commit f4533aabd3
12 changed files with 5650 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
namespace SVSim.Database.Entities.Guild;
public class GuildChatMessage
{
public long Id { get; set; } // global PK
public int GuildId { get; set; }
public int MessageId { get; set; } // per-guild monotonic, unique with GuildId
public long AuthorViewerId { get; set; }
public GuildChatMessageType MessageType { get; set; }
public string Body { get; set; } = "";
public string? DeckPayload { get; set; } // jsonb
public string? ReplayPayload { get; set; } // jsonb
public string? RoomPayload { get; set; } // jsonb
public DateTime CreatedAt { get; set; }
public Guild Guild { get; set; } = null!;
}