feat(dal,api,nextRun,templateGenerator,templateActivator): IsUnused вынесена в TemplateStatusType
This commit is contained in:
@@ -2693,9 +2693,6 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<bool>("IsActiveTemplate")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsUnused")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<Guid>("JobId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
@@ -2712,6 +2709,9 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<string>("ScheduleEsppId")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("StatusTypeId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<Guid>("UnitId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
@@ -2719,6 +2719,8 @@ namespace PARR.DAL.Migrations
|
||||
|
||||
b.HasIndex("JobId");
|
||||
|
||||
b.HasIndex("StatusTypeId");
|
||||
|
||||
b.HasIndex("UnitId");
|
||||
|
||||
b.HasIndex("Name", "Index")
|
||||
@@ -2767,6 +2769,9 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<Guid>("ParentId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<int>("StatusTypeId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ParentId");
|
||||
@@ -2774,6 +2779,47 @@ namespace PARR.DAL.Migrations
|
||||
b.ToTable("TemplateHistories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.TemplateStatusType", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("TemplateStatusTypes", t =>
|
||||
{
|
||||
t.HasComment("Таблица описания критериев выборки аттрибутов ЭК");
|
||||
});
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 0,
|
||||
Description = "В работе",
|
||||
Name = "Used"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Description = "Не используется",
|
||||
Name = "Unused"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
Description = "Обновляется",
|
||||
Name = "Updating"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Tnk", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
@@ -3552,6 +3598,12 @@ namespace PARR.DAL.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("PARR.DAL.Models.TemplateStatusType", "StatusType")
|
||||
.WithMany("Templates")
|
||||
.HasForeignKey("StatusTypeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("PARR.DAL.Models.Unit.Unit", "Unit")
|
||||
.WithMany("Templates")
|
||||
.HasForeignKey("UnitId")
|
||||
@@ -3560,6 +3612,8 @@ namespace PARR.DAL.Migrations
|
||||
|
||||
b.Navigation("Job");
|
||||
|
||||
b.Navigation("StatusType");
|
||||
|
||||
b.Navigation("Unit");
|
||||
});
|
||||
|
||||
@@ -3904,6 +3958,11 @@ namespace PARR.DAL.Migrations
|
||||
b.Navigation("UnitsInTemplate");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.TemplateStatusType", b =>
|
||||
{
|
||||
b.Navigation("Templates");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Tnk", b =>
|
||||
{
|
||||
b.Navigation("Works");
|
||||
|
||||
Reference in New Issue
Block a user