using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Nuuru.Server.Models; namespace Nuuru.Server.Data { public class AppFlag { public string Key { get; set; } public bool Value { get; set; } } public class ApplicationDbContext : IdentityDbContext { public ApplicationDbContext(DbContextOptions options) : base(options) { } protected ApplicationDbContext(DbContextOptions options) : base(options) { } public DbSet BooruPosts { get; set; } public DbSet BooruTags { get; set; } public DbSet BooruTagCategories { get; set; } public DbSet BooruComments { get; set; } public DbSet ForumCategories { get; set; } public DbSet ForumThreads { get; set; } public DbSet ForumPosts { get; set; } public DbSet ForumThreadBans { get; set; } public DbSet Notifications { get; set; } public DbSet UserIps { get; set; } public DbSet ModerationActions { get; set; } public DbSet Bans { get; set; } public DbSet StoredFiles { get; set; } public DbSet RefreshTokens { get; set; } public DbSet BooruPostVotes { get; set; } public DbSet BooruPostFavorites { get; set; } public DbSet BooruTagAliases { get; set; } public DbSet BooruTagImplications { get; set; } public DbSet CommentMentions { get; set; } public DbSet ForumPostMentions { get; set; } public DbSet Reports { get; set; } public DbSet Conversations { get; set; } public DbSet ConversationParticipants { get; set; } public DbSet Messages { get; set; } public DbSet MessageMentions { get; set; } public DbSet ForumPostAttachments { get; set; } public DbSet Reactions { get; set; } public DbSet TagHistories { get; set; } public DbSet SourceHistories { get; set; } public DbSet AuditLogs { get; set; } public DbSet BanAppeals { get; set; } public DbSet IpBans { get; set; } public DbSet IpBanAppeals { get; set; } public DbSet IpCloakEntries { get; set; } public DbSet Watches { get; set; } public DbSet SiteSettings { get; set; } public DbSet UserSettings { get; set; } public DbSet UserRelations { get; set; } public DbSet FriendBlocks { get; set; } public DbSet RelationCooldowns { get; set; } public DbSet BointsLedger { get; set; } public DbSet Clans { get; set; } public DbSet ClanMembers { get; set; } public DbSet ClanForumCategories { get; set; } public DbSet SiteEffects { get; set; } public DbSet ClanInvites { get; set; } public DbSet UserInventoryItems { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.ApplyConfigurationsFromAssembly(typeof(ApplicationDbContext).Assembly); } } }