Adding MaidBotApi

This commit is contained in:
Zeeshaun
2026-03-11 13:21:47 -05:00
parent f3cb730f3b
commit f004c8205a
122 changed files with 4227 additions and 0 deletions
@@ -0,0 +1,23 @@
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");
}
}
}