44 lines
1.8 KiB
C#
44 lines
1.8 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|