1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| 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<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: "出库人名称"),
| 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"),
| CreatedUserName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true, comment: "创建者名称"),
| UpdatedUserId = table.Column<long>(type: "bigint", nullable: true, comment: "修改者Id"),
| UpdatedUserName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true, comment: "修改者名称"),
| IsDeleted = table.Column<bool>(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");
| }
| }
| }
|
|