using System; using Microsoft.EntityFrameworkCore.Migrations; namespace WCS.Service.Migrations { public partial class _7252 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "WCS_AGVTask", columns: table => new { ID = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), AGVID = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), TaskType = table.Column(type: "int", nullable: false), Status = table.Column(type: "int", nullable: false), AGVStatus = table.Column(type: "int", nullable: false), Workshop = table.Column(type: "int", nullable: false), Station = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), Position = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false), UpdateTime = table.Column(type: "datetime2", nullable: true), AGVUpdateTime = table.Column(type: "datetime2", nullable: true) }, constraints: table => { table.PrimaryKey("PK_WCS_AGVTask", x => x.ID); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "WCS_AGVTask"); } } }