You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
5.0 KiB
80 lines
5.0 KiB
2 years ago
|
using System;
|
||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||
|
|
||
|
namespace WmsWebApi.Migrations
|
||
|
{
|
||
|
public partial class Initail : Migration
|
||
|
{
|
||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||
|
{
|
||
|
migrationBuilder.CreateTable(
|
||
|
name: "TB_ORDER",
|
||
|
columns: table => new
|
||
|
{
|
||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||
|
OrderNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||
|
Status = table.Column<int>(type: "int", nullable: false, defaultValue: 1)
|
||
|
},
|
||
|
constraints: table =>
|
||
|
{
|
||
|
table.PrimaryKey("PK_TB_ORDER", x => x.Id);
|
||
|
});
|
||
|
|
||
|
migrationBuilder.CreateTable(
|
||
|
name: "WmsWebApiZLLDCJ_LOGDTO",
|
||
|
columns: table => new
|
||
|
{
|
||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||
|
ZLLDJ = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||
|
ZLLITEM = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false),
|
||
|
ZDJLX = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||
|
ZLTLX = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
MATNR = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
BDMNG = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true),
|
||
|
MEINS = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true),
|
||
|
BKNUM = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true),
|
||
|
ENMNG = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true),
|
||
|
WERKS = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
LGORT1 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
LGORT2 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
LGORT3 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
KOSTL = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
AUFNR = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
BWART = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
GRUND = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true),
|
||
|
ZLLR = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
KZEAR = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
RSNUM = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true),
|
||
|
RSPOS = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true),
|
||
|
ERNAM = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
ERDAT = table.Column<DateTime>(type: "date", nullable: true),
|
||
|
ERZET = table.Column<TimeSpan>(type: "time(3)", nullable: true),
|
||
|
AENAM = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
AEDAT = table.Column<DateTime>(type: "date", nullable: true),
|
||
|
AEZET = table.Column<TimeSpan>(type: "time(3)", nullable: true),
|
||
|
ZBZSM = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
ANLN1 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
VBELN = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||
|
POSNR = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true),
|
||
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
|
||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||
|
},
|
||
|
constraints: table =>
|
||
|
{
|
||
|
table.PrimaryKey("PK_WmsWebApiZLLDCJ_LOGDTO", x => x.Id);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||
|
{
|
||
|
migrationBuilder.DropTable(
|
||
|
name: "TB_ORDER");
|
||
|
|
||
|
migrationBuilder.DropTable(
|
||
|
name: "WmsWebApiZLLDCJ_LOGDTO");
|
||
|
}
|
||
|
}
|
||
|
}
|