feat(dal): создана таблица GroupDistributionConfigs
This commit is contained in:
@@ -319,15 +319,22 @@ namespace PARR.DAL.Migrations
|
||||
|
||||
b.HasIndex("Type");
|
||||
|
||||
b.ToTable("DistributionPeriods");
|
||||
b.ToTable("DistributionPeriods", "schedule");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = new Guid("9bd0bfa8-c316-480b-a001-e09ffe8c9340"),
|
||||
Duration = "7",
|
||||
Name = "Еженедельно",
|
||||
Type = "Day"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
Duration = "1",
|
||||
Duration = "30",
|
||||
Name = "Ежемесячно",
|
||||
Type = "Month"
|
||||
Type = "Day"
|
||||
},
|
||||
new
|
||||
{
|
||||
@@ -335,6 +342,13 @@ namespace PARR.DAL.Migrations
|
||||
Duration = "90",
|
||||
Name = "Каждые 90 дней",
|
||||
Type = "Day"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = new Guid("31dd3947-8471-4f09-852c-a4f075f1ba7f"),
|
||||
Duration = "182",
|
||||
Name = "Каждые пол года",
|
||||
Type = "Day"
|
||||
});
|
||||
});
|
||||
|
||||
@@ -349,7 +363,7 @@ namespace PARR.DAL.Migrations
|
||||
|
||||
b.HasKey("Type");
|
||||
|
||||
b.ToTable("DistributionPeriodTypes");
|
||||
b.ToTable("DistributionPeriodTypes", "schedule");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
@@ -668,9 +682,6 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<DateTimeOffset>("DateCreated")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<Guid?>("DistributionPeriodId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("EsppExportValue")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
@@ -687,8 +698,6 @@ namespace PARR.DAL.Migrations
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("DistributionPeriodId");
|
||||
|
||||
b.HasIndex("TypeId");
|
||||
|
||||
b.ToTable("EsppSchTypeValues", "schedule");
|
||||
@@ -806,7 +815,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("b0ca99f9-5ee0-45b3-bb80-948f82b1fcb1"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("0ad2dfdb-3833-46d9-979a-c408b7eadc6c"),
|
||||
EsppExportValue = "90 00:00:00",
|
||||
Order = 12,
|
||||
TypeId = 1,
|
||||
@@ -906,7 +914,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("e86adbfb-3345-4e0c-aa3b-b4418f9cfe88"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "1",
|
||||
Order = 0,
|
||||
TypeId = 3,
|
||||
@@ -916,7 +923,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("5b4d7ca6-31e7-475b-b7c8-13c6680c3dc3"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "2",
|
||||
Order = 1,
|
||||
TypeId = 3,
|
||||
@@ -926,7 +932,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("0da03db0-9404-425d-bea1-5da0c9b60b59"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "3",
|
||||
Order = 2,
|
||||
TypeId = 3,
|
||||
@@ -936,7 +941,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("199474c8-0a77-47e5-aab8-ba33c216cc9e"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "4",
|
||||
Order = 3,
|
||||
TypeId = 3,
|
||||
@@ -946,7 +950,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("e6619da1-f7e8-45b9-bbd3-9c17bec2ccd3"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "5",
|
||||
Order = 4,
|
||||
TypeId = 3,
|
||||
@@ -956,7 +959,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("a8708763-c838-49a5-95fe-bf4f73518d71"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "6",
|
||||
Order = 5,
|
||||
TypeId = 3,
|
||||
@@ -966,7 +968,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("7ec056aa-820c-4900-96cb-4564d2ea6398"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "7",
|
||||
Order = 6,
|
||||
TypeId = 3,
|
||||
@@ -976,7 +977,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("554d7d0c-91b1-4b81-b94d-1ee864192962"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "8",
|
||||
Order = 7,
|
||||
TypeId = 3,
|
||||
@@ -986,7 +986,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("8b7847a4-23de-4199-8aad-3b5c0323b5a2"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "9",
|
||||
Order = 8,
|
||||
TypeId = 3,
|
||||
@@ -996,7 +995,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("fb7f41ca-950b-4dc1-a0a6-bd9a221ab2ad"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "10",
|
||||
Order = 9,
|
||||
TypeId = 3,
|
||||
@@ -1006,7 +1004,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("a28b530f-ea38-4a2c-a16b-0b7fa3770d3c"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "11",
|
||||
Order = 10,
|
||||
TypeId = 3,
|
||||
@@ -1016,7 +1013,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("7a004a11-32e1-40ae-ab35-0d3dc3a69785"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "12",
|
||||
Order = 11,
|
||||
TypeId = 3,
|
||||
@@ -1026,7 +1022,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("e0f2f4d1-4a5e-4997-8336-83c3c35f38df"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "13",
|
||||
Order = 12,
|
||||
TypeId = 3,
|
||||
@@ -1036,7 +1031,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("9c5aaf48-88ec-4c67-b936-2be45550f8bf"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "14",
|
||||
Order = 13,
|
||||
TypeId = 3,
|
||||
@@ -1046,7 +1040,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("8dbd680c-ce49-4d2e-8a1a-05619685e240"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "15",
|
||||
Order = 14,
|
||||
TypeId = 3,
|
||||
@@ -1056,7 +1049,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("2f476f70-b1ef-419d-aad5-3911f1e3231f"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "16",
|
||||
Order = 15,
|
||||
TypeId = 3,
|
||||
@@ -1066,7 +1058,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("2c635ce2-fc18-47be-b3e9-98c211abf312"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "17",
|
||||
Order = 16,
|
||||
TypeId = 3,
|
||||
@@ -1076,7 +1067,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("f9d5b03b-624a-4f9f-8da3-1490ea5d2914"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "18",
|
||||
Order = 17,
|
||||
TypeId = 3,
|
||||
@@ -1086,7 +1076,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("4f4b249c-db60-4582-86ed-75cfee4edd0c"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "19",
|
||||
Order = 18,
|
||||
TypeId = 3,
|
||||
@@ -1096,7 +1085,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("220a1464-4d39-416c-b4b2-3093eb007298"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "20",
|
||||
Order = 19,
|
||||
TypeId = 3,
|
||||
@@ -1106,7 +1094,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("c887ca60-b05d-4d3c-ad1f-223c879b1a6d"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "21",
|
||||
Order = 20,
|
||||
TypeId = 3,
|
||||
@@ -1116,7 +1103,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("2905765d-63fb-41fe-a111-ee2f1d03d62e"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "22",
|
||||
Order = 21,
|
||||
TypeId = 3,
|
||||
@@ -1126,7 +1112,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("dbbe704a-8d6d-40e7-bd30-6974035b1fab"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "23",
|
||||
Order = 22,
|
||||
TypeId = 3,
|
||||
@@ -1136,7 +1121,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("cf7b9645-52ed-43a2-8267-267e0aed19b1"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "24",
|
||||
Order = 23,
|
||||
TypeId = 3,
|
||||
@@ -1146,7 +1130,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("454788d6-d0ad-4c07-878c-da3fd3cd05e1"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "25",
|
||||
Order = 24,
|
||||
TypeId = 3,
|
||||
@@ -1156,7 +1139,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("40d70d73-8582-4be6-a9e6-503b96ae3d49"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "26",
|
||||
Order = 25,
|
||||
TypeId = 3,
|
||||
@@ -1166,7 +1148,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("8f6610dc-ef46-4842-a57e-18d7aaa75931"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "27",
|
||||
Order = 26,
|
||||
TypeId = 3,
|
||||
@@ -1176,7 +1157,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("03858472-d4ce-47fd-9497-8051728766e4"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "28",
|
||||
Order = 27,
|
||||
TypeId = 3,
|
||||
@@ -1186,7 +1166,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("b1018e07-e90e-42ee-b399-19f3d0c14dd6"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "29",
|
||||
Order = 28,
|
||||
TypeId = 3,
|
||||
@@ -1196,7 +1175,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("a1669207-aa31-40fe-98d0-d941008d1655"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "30",
|
||||
Order = 29,
|
||||
TypeId = 3,
|
||||
@@ -1206,7 +1184,6 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Id = new Guid("0936aa99-73e0-43de-b6df-334c1228a226"),
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
DistributionPeriodId = new Guid("3a7341a8-085c-461c-babc-6b78dd5d2c67"),
|
||||
EsppExportValue = "31",
|
||||
Order = 30,
|
||||
TypeId = 3,
|
||||
@@ -1738,6 +1715,30 @@ namespace PARR.DAL.Migrations
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Job.JobGroupDistributionConfig", b =>
|
||||
{
|
||||
b.Property<Guid>("GroupId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<Guid>("DistributionPeriodId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<bool>("IsExcludeWeekends")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsGroupingByWorkGroup")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.HasKey("GroupId");
|
||||
|
||||
b.HasIndex("DistributionPeriodId");
|
||||
|
||||
b.ToTable("GroupDistributionConfigs", "job", t =>
|
||||
{
|
||||
t.HasComment("Настройки автораспределения для группы работ");
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Job.JobGroupType", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
@@ -3229,7 +3230,7 @@ namespace PARR.DAL.Migrations
|
||||
b.HasIndex("Date")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("WeekendDays");
|
||||
b.ToTable("WeekendDays", "schedule");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.WorkGroup", b =>
|
||||
@@ -3372,18 +3373,12 @@ namespace PARR.DAL.Migrations
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.EsppSchTypeValue", b =>
|
||||
{
|
||||
b.HasOne("PARR.DAL.Models.DistributionPeriod", "DistributionPeriod")
|
||||
.WithMany("EsppSchTypeValues")
|
||||
.HasForeignKey("DistributionPeriodId");
|
||||
|
||||
b.HasOne("PARR.DAL.Models.EsppSchType", "EsppSchType")
|
||||
.WithMany("EsppSchTypeValues")
|
||||
.HasForeignKey("TypeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("DistributionPeriod");
|
||||
|
||||
b.Navigation("EsppSchType");
|
||||
});
|
||||
|
||||
@@ -3520,6 +3515,25 @@ namespace PARR.DAL.Migrations
|
||||
b.Navigation("ScheduleExcludeTypeCalendar");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Job.JobGroupDistributionConfig", b =>
|
||||
{
|
||||
b.HasOne("PARR.DAL.Models.DistributionPeriod", "DistributionPeriod")
|
||||
.WithMany("GroupDistributionConfig")
|
||||
.HasForeignKey("DistributionPeriodId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("PARR.DAL.Models.Job.JobGroup", "Group")
|
||||
.WithOne("DistributionConfig")
|
||||
.HasForeignKey("PARR.DAL.Models.Job.JobGroupDistributionConfig", "GroupId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("DistributionPeriod");
|
||||
|
||||
b.Navigation("Group");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Job.JobRelationshipFilter", b =>
|
||||
{
|
||||
b.HasOne("PARR.DAL.Models.Unit.UnitField", "UnitField")
|
||||
@@ -3874,7 +3888,7 @@ namespace PARR.DAL.Migrations
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.DistributionPeriod", b =>
|
||||
{
|
||||
b.Navigation("EsppSchTypeValues");
|
||||
b.Navigation("GroupDistributionConfig");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.DistributionPeriodType", b =>
|
||||
@@ -3925,6 +3939,8 @@ namespace PARR.DAL.Migrations
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Job.JobGroup", b =>
|
||||
{
|
||||
b.Navigation("DistributionConfig");
|
||||
|
||||
b.Navigation("EsppSchValues");
|
||||
|
||||
b.Navigation("Jobs");
|
||||
|
||||
Reference in New Issue
Block a user