#nullable disable using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Lieb.Models; using Lieb.Models.Raid; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; namespace Lieb.Data { public class LiebContext : IdentityDbContext { public LiebContext (DbContextOptions options) : base(options) { } public DbSet Users { get; set; } public DbSet GuildWars2Account { get; set; } public DbSet Equipped { get; set; } public DbSet RaidRoles { get; set; } public DbSet PlannedRaids { get; set; } public DbSet PlannedRaidRoles { get; set; } public DbSet Raids { get; set; } public DbSet RaidReminders { get; set; } public DbSet RaidSignUps { get; set; } public DbSet RandomRaids { get; set; } public DbSet SignUpHistories { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity().ToTable("User"); modelBuilder.Entity().ToTable("GuildWars2Account"); modelBuilder.Entity().ToTable("Equipped"); modelBuilder.Entity().ToTable("RaidRole"); modelBuilder.Entity().ToTable("PlannedRaid"); modelBuilder.Entity().ToTable("PlannedRaidRole"); modelBuilder.Entity().ToTable("Raid"); modelBuilder.Entity().ToTable("RaidReminder"); modelBuilder.Entity().ToTable("RaidSignUp"); modelBuilder.Entity().ToTable("RandomRaid"); modelBuilder.Entity().ToTable("SignUpHistory"); } } }