Add supply contract entity
This commit is contained in:
@ -228,6 +228,33 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
||||
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.FileToParse", b =>
|
||||
{
|
||||
b.HasOne("Hcs.WebApp.Data.Hcs.Operation", "LastParseOperation")
|
||||
@ -277,6 +304,15 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
||||
b.Navigation("Registry");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.SupplyContract", b =>
|
||||
{
|
||||
b.HasOne("Hcs.WebApp.Data.Hcs.Operation", "LastSyncOperation")
|
||||
.WithMany()
|
||||
.HasForeignKey("LastSyncOperationId");
|
||||
|
||||
b.Navigation("LastSyncOperation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Campaign", b =>
|
||||
{
|
||||
b.Navigation("Operations");
|
||||
|
||||
Reference in New Issue
Block a user