﻿CREATE TABLE [TB_ORDER] (
    [Id] uniqueidentifier NOT NULL,
    [OrderNumber] nvarchar(64) NOT NULL,
    [Status] int NOT NULL DEFAULT 1,
    CONSTRAINT [PK_TB_ORDER] PRIMARY KEY ([Id])
);
GO


CREATE TABLE [WmsWebApiZLLDCJ_LOGDTO] (
    [Id] uniqueidentifier NOT NULL,
    [ZLLDJ] nvarchar(max) NULL,
    [ZLLITEM] decimal(18,6) NOT NULL,
    [ZDJLX] nvarchar(64) NOT NULL,
    [ZLTLX] nvarchar(64) NULL,
    [MATNR] nvarchar(64) NULL,
    [BDMNG] decimal(18,6) NULL,
    [MEINS] decimal(18,6) NULL,
    [BKNUM] decimal(18,6) NULL,
    [ENMNG] decimal(18,6) NULL,
    [WERKS] nvarchar(64) NULL,
    [LGORT1] nvarchar(64) NULL,
    [LGORT2] nvarchar(64) NULL,
    [LGORT3] nvarchar(64) NULL,
    [KOSTL] nvarchar(64) NULL,
    [AUFNR] nvarchar(64) NULL,
    [BWART] nvarchar(64) NULL,
    [GRUND] decimal(18,6) NULL,
    [ZLLR] nvarchar(64) NULL,
    [KZEAR] nvarchar(64) NULL,
    [RSNUM] decimal(18,6) NULL,
    [RSPOS] decimal(18,6) NULL,
    [ERNAM] nvarchar(64) NULL,
    [ERDAT] date NULL,
    [ERZET] time(3) NULL,
    [AENAM] nvarchar(64) NULL,
    [AEDAT] date NULL,
    [AEZET] time(3) NULL,
    [ZBZSM] nvarchar(64) NULL,
    [ANLN1] nvarchar(64) NULL,
    [VBELN] nvarchar(64) NULL,
    [POSNR] decimal(18,6) NULL,
    [ExtraProperties] nvarchar(max) NULL,
    [ConcurrencyStamp] nvarchar(40) NULL,
    [CreationTime] datetime2 NOT NULL,
    [CreatorId] uniqueidentifier NULL,
    CONSTRAINT [PK_WmsWebApiZLLDCJ_LOGDTO] PRIMARY KEY ([Id])
);
GO


