using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace iWare.Wms.Database.Migrations.Migrations { public partial class v101 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "WorkPieceOutbound", columns: table => new { Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"), WorkPieceID = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: false, comment: "工件号"), OP80NewCode = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: false, comment: "OP80打码"), WorkPieceOutboundTime = table.Column(type: "datetime2", nullable: false, comment: "出库时间"), WorkPieceOutboundUserId = table.Column(type: "bigint", maxLength: 32, nullable: false, comment: "出库人Id"), WorkPieceOutboundUserName = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: false, comment: "出库人名称"), CreatedTime = table.Column(type: "datetimeoffset", nullable: true, comment: "创建时间"), UpdatedTime = table.Column(type: "datetimeoffset", nullable: true, comment: "更新时间"), CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"), CreatedUserName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true, comment: "创建者名称"), UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"), UpdatedUserName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true, comment: "修改者名称"), IsDeleted = table.Column(type: "bit", nullable: false, comment: "软删除标记") }, constraints: table => { table.PrimaryKey("PK_WorkPieceOutbound", x => x.Id); }, comment: "工件出库表"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "WorkPieceOutbound"); } } }