Add FileToParse entity

This commit is contained in:
2025-11-17 16:15:31 +09:00
parent d2d9432687
commit 1be00766ec
6 changed files with 392 additions and 1 deletions

View File

@ -56,6 +56,30 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
b.ToTable("Campaigns");
});
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.FileToParse", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int?>("LastParseOperationId")
.HasColumnType("int");
b.Property<DateTime?>("ParsedAt")
.HasColumnType("datetime2");
b.Property<int>("Path")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("LastParseOperationId");
b.ToTable("FilesToParse");
});
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.House", b =>
{
b.Property<int>("Id")
@ -189,10 +213,19 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
b.ToTable("Elements");
});
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.FileToParse", b =>
{
b.HasOne("Hcs.WebApp.Data.Hcs.Operation", "LastParseOperation")
.WithMany("FilesToParse")
.HasForeignKey("LastParseOperationId");
b.Navigation("LastParseOperation");
});
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.House", b =>
{
b.HasOne("Hcs.WebApp.Data.Hcs.Operation", "LastSyncOperation")
.WithMany()
.WithMany("Houses")
.HasForeignKey("LastSyncOperationId");
b.Navigation("LastSyncOperation");
@ -236,6 +269,10 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Operation", b =>
{
b.Navigation("FilesToParse");
b.Navigation("Houses");
b.Navigation("Registries");
});