1
schangxiang@126.com
2024-08-31 11a0ed37d6fb4650d616cc94b11f07d283ea1e97
iWara.SCADA.Code/iWare.Wms.Database.Migrations/Migrations/20240830014836_v1.0.2.cs
ÎļþÃû´Ó iWara.SCADA.Code/iWare.Wms.Database.Migrations/Migrations/20240112013535_v1.0.1.cs ÐÞ¸Ä
@@ -5,20 +5,20 @@
namespace iWare.Wms.Database.Migrations.Migrations
{
    public partial class v101 : Migration
    public partial class v102 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "WorkPieceOutbound",
                name: "WorkPieceOutboundRecord",
                columns: table => new
                {
                    Id = table.Column<long>(type: "bigint", nullable: false, comment: "Id主键"),
                    WorkPieceID = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false, comment: "工件号"),
                    OP80NewCode = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: false, comment: "OP80打码"),
                    WorkPieceOutboundTime = table.Column<DateTime>(type: "datetime2", nullable: false, comment: "出库时间"),
                    WorkPieceOutboundUserId = table.Column<long>(type: "bigint", maxLength: 32, nullable: false, comment: "出库人Id"),
                    WorkPieceOutboundUserName = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false, comment: "出库人名称"),
                    OperationType = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true, comment: "操作类型"),
                    OP80NewCode = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: false, comment: "成品码"),
                    WorkPieceID = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: true, comment: "工件号"),
                    CarNo = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: true, comment: "小车码"),
                    Remark = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true, comment: "备注"),
                    CreatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true, comment: "创建时间"),
                    UpdatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true, comment: "更新时间"),
                    CreatedUserId = table.Column<long>(type: "bigint", nullable: true, comment: "创建者Id"),
@@ -29,15 +29,15 @@
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_WorkPieceOutbound", x => x.Id);
                    table.PrimaryKey("PK_WorkPieceOutboundRecord", x => x.Id);
                },
                comment: "工件出库表");
                comment: "工件出库记录表");
        }
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "WorkPieceOutbound");
                name: "WorkPieceOutboundRecord");
        }
    }
}