序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | OrderListID | int | 4 | 0 | 是 | 门店订单ID | ||||
3 | ProID | int | 4 | 0 | 是 | 商品ID | ||||
4 | ProName | nvarchar | 100 | 0 | 是 | 商品名称 | ||||
5 | ProPrice | money | 8 | 4 | 是 | 商品价格 | ||||
6 | Pronum | int | 4 | 0 | 是 | 订购数量 | ||||
7 | Pronum_Rece | int | 4 | 0 | 是 | 收货数量 | ||||
8 | ProArrive | money | 8 | 4 | 是 | 商品优惠 | ||||
9 | Remind | nvarchar | 500 | 0 | 是 | |||||
10 | ZStatus | nvarchar | 200 | 0 | 是 | |||||
11 | CDate | datetime | 8 | 3 | 是 | |||||
12 | UserID | int | 4 | 0 | 是 | |||||
13 | AllMoney | money | 8 | 4 | 是 | 金额小计 |
门店采购订单
GO
CREATE TABLE [dbo].[ZL_Shop_ProOrderList](
[ID] [int] IDENTITY(1,1) NOT NULL,
[OrderListID] [int] NULL,
[ProID] [int] NULL,
[ProName] [nvarchar](100) NULL,
[ProPrice] [money] NULL,
[Pronum] [int] NULL,
[Pronum_Rece] [int] NULL,
[ProArrive] [money] NULL,
[Remind] [nvarchar](500) NULL,
[ZStatus] [nvarchar](200) NULL,
[CDate] [datetime] NULL,
[UserID] [int] NULL,
[AllMoney] [money] NULL,
CONSTRAINT [PK_ZL_Shop_ProOrderList] PRIMARY KEY CLUSTERED
([ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
detele from ZL_Shop_ProOrderList
drop table ZL_Shop_ProOrderList
TRUNCATE table ZL_Shop_ProOrderList