data model fix

This commit is contained in:
Alan Moon 2025-03-03 12:42:49 -08:00
parent 21b7cd9694
commit a3ba9556d0
3 changed files with 1330 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace sodoff.Migrations
{
/// <inheritdoc />
public partial class Buddies_DBSetFix : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

View File

@ -32,6 +32,7 @@ public class DBContext : DbContext {
public DbSet<UserBadgeCompleteData> UserBadgesCompleted { get; set; } = null!; public DbSet<UserBadgeCompleteData> UserBadgesCompleted { get; set; } = null!;
public DbSet<UserBan> Bans { get; set; } = null!; public DbSet<UserBan> Bans { get; set; } = null!;
public DbSet<Message> Messages { get; set; } = null!; public DbSet<Message> Messages { get; set; } = null!;
public DbSet<Buddy> Buddies { get; set; } = null!;
private readonly IOptions<ApiServerConfig> config; private readonly IOptions<ApiServerConfig> config;