using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using T120B165_ImgBoard.Models; using File = T120B165_ImgBoard.Models.File; namespace T120B165_ImgBoard.Data; public class ImgBoardContext(DbContextOptions options) : IdentityDbContext(options) { public DbSet RefreshTokens { get; set; } public DbSet Tags { get; set; } public DbSet Posts { get; set; } public DbSet Comments { get; set; } public DbSet Files { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity().ToTable("RefreshTokens"); modelBuilder.Entity().ToTable("Tags"); modelBuilder.Entity().ToTable("Posts"); modelBuilder.Entity().ToTable("Files"); modelBuilder.Entity().ToTable("Comments"); } }