using Microsoft.EntityFrameworkCore; using ProductionLineMonitor.Core.Models; namespace ProductionLineMonitor.EntityFramework { public class ProductionLineContext : DbContext { public ProductionLineContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); } public DbSet? Users { get; set; } public DbSet? Roles { get; set; } public DbSet? ProductionLines { get; set; } public DbSet? Machines { get; set; } public DbSet? Cims { get; set; } public DbSet? MachineOutPutPerHours { get; set; } public DbSet? Recipes { get; set; } public DbSet? MachineFaultComparisons { get; set; } public DbSet? MachineFaultRecords { get; set; } public DbSet? MachinePowerConsumptions { get; set; } public DbSet? MachineStatistics { get; set; } #region 工艺数据 public DbSet? MachineProcessFOGs { get; set; } public DbSet? MachineProcessPSs { get; set; } public DbSet? MachineProcessBTs { get; set; } public DbSet? MachineProcessPSEPDs { get; set; } #endregion public DbSet? Menus { get; set; } public DbSet? RoleMenus { get; set; } public DbSet? ElectricEnergyMeters { get; set; } public DbSet? ElectricEnergyMeterLogs { get; set; } } }