序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | UserID | int | 4 | 0 | 是 | 用户ID | ||||
3 | Code | int | 4 | 0 | 是 | 幸运码 | ||||
4 | ProID | int | 4 | 0 | 是 | 商品ID | ||||
5 | OrderID | int | 4 | 0 | 是 | 订单ID | ||||
6 | OrderNO | nvarchar | 50 | 0 | 是 | 订单号 | ||||
7 | CreateTime | datetime | 8 | 3 | 是 | 创建时间 | ||||
8 | CreateTime2 | nvarchar | 50 | 0 | 是 | 创建时间 |
幸运码表
GO
CREATE TABLE [dbo].[ZL_Order_LuckCode] (
[ID] [int] IDENTITY (1, 1) NOT NULL,
[UserID] [int] NULL,
[Code] [int] NULL,
[ProID] [int] NULL,
[OrderID] [int] NULL,
[OrderNO] [nvarchar] (50) NULL,
[CreateTime] [datetime] NULL,
[CreateTime2] [nvarchar] (50))
ALTER TABLE [ZL_Order_LuckCode] WITH NOCHECK ADD CONSTRAINT [PK_ZL_Order_LuckCode] PRIMARY KEY NONCLUSTERED ( [ID] )
detele from ZL_Order_LuckCode
drop table ZL_Order_LuckCode
TRUNCATE table ZL_Order_LuckCode