using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
///
public partial class z202506030002 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "TaskAllocation",
columns: table => new
{
UId = table.Column(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
TaskName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
TableName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
Creator = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
Subscriber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
WriteState = table.Column(type: "bit", nullable: false),
ReadState = table.Column(type: "bit", nullable: false),
CreationTime = table.Column(type: "datetime2", nullable: false),
Remark = table.Column(type: "nvarchar(max)", nullable: true),
TaskId = table.Column(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_TaskAllocation", x => x.UId);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "TaskAllocation");
}
}
}