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(type: "uniqueidentifier", nullable: false), OrderNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Status = table.Column(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(type: "uniqueidentifier", nullable: false), ZLLDJ = table.Column(type: "nvarchar(max)", nullable: true), ZLLITEM = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), ZDJLX = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), ZLTLX = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), MATNR = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), BDMNG = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true), MEINS = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true), BKNUM = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true), ENMNG = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true), WERKS = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), LGORT1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), LGORT2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), LGORT3 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), KOSTL = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), AUFNR = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), BWART = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), GRUND = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true), ZLLR = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), KZEAR = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), RSNUM = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true), RSPOS = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true), ERNAM = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), ERDAT = table.Column(type: "date", nullable: true), ERZET = table.Column(type: "time(3)", nullable: true), AENAM = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), AEDAT = table.Column(type: "date", nullable: true), AEZET = table.Column(type: "time(3)", nullable: true), ZBZSM = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), ANLN1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), VBELN = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), POSNR = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: true), ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(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"); } } }