using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace iWare.Wms.Database.Migrations.Migrations { public partial class v102 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "WorkPieceOutboundRecord", columns: table => new { Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"), OperationType = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true, comment: "操作类型"), OP80NewCode = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: false, comment: "成品码"), WorkPieceID = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true, comment: "工件号"), CarNo = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true, comment: "小车码"), Remark = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true, 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_WorkPieceOutboundRecord", x => x.Id); }, comment: "工件出库记录表"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "WorkPieceOutboundRecord"); } } }