Add account entity
This commit is contained in:
17
Hcs.WebApp/Data/Hcs/Account.cs
Normal file
17
Hcs.WebApp/Data/Hcs/Account.cs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
namespace Hcs.WebApp.Data.Hcs
|
||||||
|
{
|
||||||
|
public class Account
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
public Guid? HcsId { get; set; }
|
||||||
|
|
||||||
|
public string? ThirdPartyId { get; set; }
|
||||||
|
|
||||||
|
public DateTime? SyncedAt { get; set; }
|
||||||
|
|
||||||
|
public int? LastSyncOperationId { get; set; }
|
||||||
|
|
||||||
|
public virtual Operation? LastSyncOperation { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -19,6 +19,8 @@ namespace Hcs.WebApp.Data.Hcs
|
|||||||
|
|
||||||
public DbSet<SupplyContract> SupplyContracts { get; set; }
|
public DbSet<SupplyContract> SupplyContracts { get; set; }
|
||||||
|
|
||||||
|
public DbSet<Account> Accounts { get; set; }
|
||||||
|
|
||||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
{
|
{
|
||||||
optionsBuilder
|
optionsBuilder
|
||||||
|
|||||||
383
Hcs.WebApp/Data/Hcs/Migrations/20251126003146_AddAccountEntity.Designer.cs
generated
Normal file
383
Hcs.WebApp/Data/Hcs/Migrations/20251126003146_AddAccountEntity.Designer.cs
generated
Normal file
@ -0,0 +1,383 @@
|
|||||||
|
// <auto-generated />
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
namespace Hcs.WebApp.Data.Hcs.Migrations
|
||||||
|
{
|
||||||
|
[DbContext(typeof(HcsDbContext))]
|
||||||
|
[Migration("20251126003146_AddAccountEntity")]
|
||||||
|
public partial class AddAccountEntity
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
#pragma warning disable 612, 618
|
||||||
|
modelBuilder
|
||||||
|
.HasAnnotation("ProductVersion", "9.0.9")
|
||||||
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||||
|
|
||||||
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Account", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||||
|
|
||||||
|
b.Property<Guid?>("HcsId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<int?>("LastSyncOperationId")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("SyncedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("ThirdPartyId")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("LastSyncOperationId");
|
||||||
|
|
||||||
|
b.ToTable("Accounts");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Campaign", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||||
|
|
||||||
|
b.Property<string>("Args")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreatedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("EndedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("FailureReason")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("InitiatorId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<int>("Progress")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("StartedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<int>("Step")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<string>("Type")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
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<string>("FileName")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<int?>("LastParseOperationId")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("ParsedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("Path")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<DateTime>("UploadedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("UploaderId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("LastParseOperationId");
|
||||||
|
|
||||||
|
b.ToTable("FilesToParse");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.House", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||||
|
|
||||||
|
b.Property<Guid?>("FiasId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid?>("HcsId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<bool>("IsMkd")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<bool>("IsZhd")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<int?>("LastSyncOperationId")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("SyncedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("ThirdPartyId")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("FiasId")
|
||||||
|
.IsUnique()
|
||||||
|
.HasFilter("[FiasId] IS NOT NULL");
|
||||||
|
|
||||||
|
b.HasIndex("LastSyncOperationId");
|
||||||
|
|
||||||
|
b.ToTable("Houses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Operation", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||||
|
|
||||||
|
b.Property<int>("CampaignId")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreatedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("EndedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("ExportGuid")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("FailureReason")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("MessageGuid")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("StartedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("Type")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CampaignId");
|
||||||
|
|
||||||
|
b.ToTable("Operations");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Registry", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<bool>("IsCommon")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<int?>("LastSyncOperationId")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<int>("Number")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("SyncedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("LastSyncOperationId");
|
||||||
|
|
||||||
|
b.ToTable("Registries");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.RegistryElement", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<string>("Code")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("GUID")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("Json")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<Guid>("RegistryId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("RegistryId");
|
||||||
|
|
||||||
|
b.ToTable("Elements");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.SupplyContract", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||||
|
|
||||||
|
b.Property<Guid?>("HcsId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<int?>("LastSyncOperationId")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("SyncedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("ThirdPartyId")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("LastSyncOperationId");
|
||||||
|
|
||||||
|
b.ToTable("SupplyContracts");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Account", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hcs.WebApp.Data.Hcs.Operation", "LastSyncOperation")
|
||||||
|
.WithMany("Accounts")
|
||||||
|
.HasForeignKey("LastSyncOperationId");
|
||||||
|
|
||||||
|
b.Navigation("LastSyncOperation");
|
||||||
|
});
|
||||||
|
|
||||||
|
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("Houses")
|
||||||
|
.HasForeignKey("LastSyncOperationId");
|
||||||
|
|
||||||
|
b.Navigation("LastSyncOperation");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Operation", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hcs.WebApp.Data.Hcs.Campaign", "Campaign")
|
||||||
|
.WithMany("Operations")
|
||||||
|
.HasForeignKey("CampaignId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Campaign");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Registry", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hcs.WebApp.Data.Hcs.Operation", "LastSyncOperation")
|
||||||
|
.WithMany("Registries")
|
||||||
|
.HasForeignKey("LastSyncOperationId");
|
||||||
|
|
||||||
|
b.Navigation("LastSyncOperation");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.RegistryElement", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hcs.WebApp.Data.Hcs.Registry", "Registry")
|
||||||
|
.WithMany("Elements")
|
||||||
|
.HasForeignKey("RegistryId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Registry");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.SupplyContract", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hcs.WebApp.Data.Hcs.Operation", "LastSyncOperation")
|
||||||
|
.WithMany("SupplyContracts")
|
||||||
|
.HasForeignKey("LastSyncOperationId");
|
||||||
|
|
||||||
|
b.Navigation("LastSyncOperation");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Campaign", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Operations");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Operation", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Accounts");
|
||||||
|
|
||||||
|
b.Navigation("FilesToParse");
|
||||||
|
|
||||||
|
b.Navigation("Houses");
|
||||||
|
|
||||||
|
b.Navigation("Registries");
|
||||||
|
|
||||||
|
b.Navigation("SupplyContracts");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Registry", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Elements");
|
||||||
|
});
|
||||||
|
#pragma warning restore 612, 618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
namespace Hcs.WebApp.Data.Hcs.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class AddAccountEntity : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Accounts",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "int", nullable: false)
|
||||||
|
.Annotation("SqlServer:Identity", "1, 1"),
|
||||||
|
HcsId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
ThirdPartyId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
SyncedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
LastSyncOperationId = table.Column<int>(type: "int", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Accounts", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Accounts_Operations_LastSyncOperationId",
|
||||||
|
column: x => x.LastSyncOperationId,
|
||||||
|
principalTable: "Operations",
|
||||||
|
principalColumn: "Id");
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Accounts_LastSyncOperationId",
|
||||||
|
table: "Accounts",
|
||||||
|
column: "LastSyncOperationId");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Accounts");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -17,6 +17,33 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
|||||||
|
|
||||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Account", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||||
|
|
||||||
|
b.Property<Guid?>("HcsId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<int?>("LastSyncOperationId")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("SyncedAt")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("ThirdPartyId")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("LastSyncOperationId");
|
||||||
|
|
||||||
|
b.ToTable("Accounts");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Campaign", b =>
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Campaign", b =>
|
||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
@ -258,6 +285,15 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
|||||||
b.ToTable("SupplyContracts");
|
b.ToTable("SupplyContracts");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Account", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hcs.WebApp.Data.Hcs.Operation", "LastSyncOperation")
|
||||||
|
.WithMany("Accounts")
|
||||||
|
.HasForeignKey("LastSyncOperationId");
|
||||||
|
|
||||||
|
b.Navigation("LastSyncOperation");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.FileToParse", b =>
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.FileToParse", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Hcs.WebApp.Data.Hcs.Operation", "LastParseOperation")
|
b.HasOne("Hcs.WebApp.Data.Hcs.Operation", "LastParseOperation")
|
||||||
@ -323,6 +359,8 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Operation", b =>
|
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Operation", b =>
|
||||||
{
|
{
|
||||||
|
b.Navigation("Accounts");
|
||||||
|
|
||||||
b.Navigation("FilesToParse");
|
b.Navigation("FilesToParse");
|
||||||
|
|
||||||
b.Navigation("Houses");
|
b.Navigation("Houses");
|
||||||
|
|||||||
@ -54,6 +54,8 @@ namespace Hcs.WebApp.Data.Hcs
|
|||||||
|
|
||||||
public virtual ICollection<SupplyContract> SupplyContracts { get; set; } = [];
|
public virtual ICollection<SupplyContract> SupplyContracts { get; set; } = [];
|
||||||
|
|
||||||
|
public virtual ICollection<Account> Accounts { get; set; } = [];
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
public bool Completed => EndedAt.HasValue;
|
public bool Completed => EndedAt.HasValue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user