Add account entity
This commit is contained in:
@ -17,6 +17,33 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
||||
|
||||
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")
|
||||
@ -258,6 +285,15 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
||||
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")
|
||||
@ -323,6 +359,8 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
||||
|
||||
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Operation", b =>
|
||||
{
|
||||
b.Navigation("Accounts");
|
||||
|
||||
b.Navigation("FilesToParse");
|
||||
|
||||
b.Navigation("Houses");
|
||||
|
||||
Reference in New Issue
Block a user