feat(api,dal): в модель JobGroupType добавлено поле description. В job контроллерах убрано поле isUmbrella, добавлено JobType.
This commit is contained in:
3967
PARR.DAL/Migrations/20251117012034_tblJobGroupTypeAddDescription.Designer.cs
generated
Normal file
3967
PARR.DAL/Migrations/20251117012034_tblJobGroupTypeAddDescription.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tblJobGroupTypeAddDescription : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Description",
|
||||
schema: "job",
|
||||
table: "GroupTypes",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
schema: "job",
|
||||
table: "GroupTypes",
|
||||
keyColumn: "Id",
|
||||
keyValue: new Guid("318625e5-f833-436a-99df-2a382a1e71c7"),
|
||||
column: "Description",
|
||||
value: "Сгруппированный");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
schema: "job",
|
||||
table: "GroupTypes",
|
||||
keyColumn: "Id",
|
||||
keyValue: new Guid("4fa62e79-86bb-47c2-be1a-72a716a170fa"),
|
||||
column: "Description",
|
||||
value: "Обычный");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
schema: "job",
|
||||
table: "GroupTypes",
|
||||
keyColumn: "Id",
|
||||
keyValue: new Guid("6ec58b1a-5c40-47b9-b036-4fa490e8d503"),
|
||||
column: "Description",
|
||||
value: "Зонтик");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Description",
|
||||
schema: "job",
|
||||
table: "GroupTypes");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1709,6 +1709,10 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<DateTimeOffset>("DateCreated")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
@@ -1726,6 +1730,7 @@ namespace PARR.DAL.Migrations
|
||||
Id = new Guid("4fa62e79-86bb-47c2-be1a-72a716a170fa"),
|
||||
Code = 0,
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
Description = "Обычный",
|
||||
Name = "Simple"
|
||||
},
|
||||
new
|
||||
@@ -1733,6 +1738,7 @@ namespace PARR.DAL.Migrations
|
||||
Id = new Guid("6ec58b1a-5c40-47b9-b036-4fa490e8d503"),
|
||||
Code = 1,
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
Description = "Зонтик",
|
||||
Name = "Umbrella"
|
||||
},
|
||||
new
|
||||
@@ -1740,6 +1746,7 @@ namespace PARR.DAL.Migrations
|
||||
Id = new Guid("318625e5-f833-436a-99df-2a382a1e71c7"),
|
||||
Code = 2,
|
||||
DateCreated = new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
Description = "Сгруппированный",
|
||||
Name = "Group"
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user