feat(home-dialog): add HomeDialogEntry entity + migration

DDL-only per migrations-are-ddl-only convention. Seeded by
SVSim.Bootstrap MyPageGlobalsImporter (T5) — no HasData.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-08 18:51:12 -04:00
parent d3488c3bc6
commit 7a82f4e189
5 changed files with 4266 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,51 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SVSim.Database.Migrations
{
/// <inheritdoc />
public partial class AddHomeDialogEntries : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "HomeDialogEntries",
columns: table => new
{
Id = table.Column<int>(type: "integer", nullable: false),
TitleTextId = table.Column<string>(type: "text", nullable: false),
Image = table.Column<string>(type: "text", nullable: false),
ButtonListJson = table.Column<string>(type: "jsonb", nullable: false),
BeginTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
EndTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
Type = table.Column<int>(type: "integer", nullable: true),
Priority = table.Column<int>(type: "integer", nullable: false),
DateCreated = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
DateUpdated = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_HomeDialogEntries", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_HomeDialogEntries_BeginTime_EndTime",
table: "HomeDialogEntries",
columns: new[] { "BeginTime", "EndTime" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_HomeDialogEntries_BeginTime_EndTime",
table: "HomeDialogEntries");
migrationBuilder.DropTable(
name: "HomeDialogEntries");
}
}
}

View File

@@ -1176,6 +1176,46 @@ namespace SVSim.Database.Migrations
b.ToTable("GameConfigs");
});
modelBuilder.Entity("SVSim.Database.Models.HomeDialogEntry", b =>
{
b.Property<int>("Id")
.HasColumnType("integer");
b.Property<DateTime>("BeginTime")
.HasColumnType("timestamp with time zone");
b.Property<string>("ButtonListJson")
.IsRequired()
.HasColumnType("jsonb");
b.Property<DateTime>("DateCreated")
.HasColumnType("timestamp with time zone");
b.Property<DateTime?>("DateUpdated")
.HasColumnType("timestamp with time zone");
b.Property<DateTime>("EndTime")
.HasColumnType("timestamp with time zone");
b.Property<string>("Image")
.IsRequired()
.HasColumnType("text");
b.Property<int>("Priority")
.HasColumnType("integer");
b.Property<string>("TitleTextId")
.IsRequired()
.HasColumnType("text");
b.Property<int?>("Type")
.HasColumnType("integer");
b.HasKey("Id");
b.ToTable("HomeDialogEntries");
});
modelBuilder.Entity("SVSim.Database.Models.ItemEntry", b =>
{
b.Property<int>("Id")