24 lines
800 B
C#
24 lines
800 B
C#
using LCU.Api.Internal.MaidBotLib.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace LCU.Api.Internal.MaidBotLib.Persistence
|
|
{
|
|
public class AppDbContext : DbContext
|
|
{
|
|
public DbSet<LoggingMatrix> LoggingMatrixs { get; set; }
|
|
public DbSet<EventLog> EventLogs { get; set; }
|
|
public DbSet<DebugEventLog> DebugEventLogs { get; set; }
|
|
|
|
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
|
|
|
|
protected override void OnModelCreating(ModelBuilder builder)
|
|
{
|
|
base.OnModelCreating(builder);
|
|
|
|
builder.Entity<LoggingMatrix>().ToTable("LoggingMatrix");
|
|
builder.Entity<EventLog>().ToTable("EventLog");
|
|
builder.Entity<DebugEventLog>().ToTable("DebugEventLog");
|
|
}
|
|
}
|
|
}
|