Add migration
This commit is contained in:
@ -56,6 +56,42 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
||||
b.ToTable("Campaigns");
|
||||
});
|
||||
|
||||
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<bool>("IsMkd")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IsZhd")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<int?>("LastSyncOperationId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("SyncedAt")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ThirdPartyId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("FiasId")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex("LastSyncOperationId");
|
||||
|
||||
b.ToTable("Houses");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Operation", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@ -149,6 +185,15 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
||||
b.ToTable("Elements");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.House", b =>
|
||||
{
|
||||
b.HasOne("Hcs.WebApp.Data.Hcs.Operation", "LastSyncOperation")
|
||||
.WithMany()
|
||||
.HasForeignKey("LastSyncOperationId");
|
||||
|
||||
b.Navigation("LastSyncOperation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Hcs.WebApp.Data.Hcs.Operation", b =>
|
||||
{
|
||||
b.HasOne("Hcs.WebApp.Data.Hcs.Campaign", "Campaign")
|
||||
|
||||
Reference in New Issue
Block a user