table Template
This commit is contained in:
43
PARR.DAL/Migrations/20230901023821_TblTemplates.cs
Normal file
43
PARR.DAL/Migrations/20230901023821_TblTemplates.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TblTemplates : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Templates",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
DateCreated = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
DateModified = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
|
||||
EK = table.Column<string>(type: "text", nullable: false),
|
||||
isActive = table.Column<bool>(type: "boolean", nullable: false),
|
||||
WorkGroup = table.Column<string>(type: "text", nullable: false),
|
||||
ShortDescription = table.Column<string>(type: "text", nullable: false),
|
||||
Category = table.Column<string>(type: "text", nullable: false),
|
||||
EKDateCreated = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
|
||||
Process = table.Column<string>(type: "text", nullable: false),
|
||||
SubProcess = table.Column<string>(type: "text", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Templates", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Templates");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user