序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | CartID | int | 4 | 0 | 是 | 对应的购物车ID | ||||
3 | Name | nvarchar | 500 | 0 | 是 | 商品名称 | ||||
4 | W_StartNum | int | 4 | 0 | 是 | 促销条件 | ||||
5 | P_ID | int | 4 | 0 | 是 | 促销绑定商品 | ||||
6 | P_Num | int | 4 | 0 | 是 | 促销数量 | ||||
7 | P_Name | nvarchar | 500 | 0 | 是 | 促销品名 | ||||
8 | P_Price | money | 8 | 4 | 是 | 促销价格 | ||||
9 | W_Type | int | 4 | 0 | 是 | 促销类型 | ||||
10 | R_Price | money | 8 | 4 | 是 | 实际优惠金额 | ||||
11 | R_Num | int | 4 | 0 | 是 | 实际赠送数量 | ||||
12 | Remind | nvarchar | 500 | 0 | 是 |
促销商品购物车绑定
GO
CREATE TABLE [dbo].[ZL_Cart_Present](
[ID] [int] IDENTITY(1,1) NOT NULL,
[CartID] [int] NULL,
[Name] [nvarchar](500) NULL,
[W_StartNum] [int] NULL,
[P_ID] [int] NULL,
[P_Num] [int] NULL,
[P_Name] [nvarchar](500) NULL,
[P_Price] [money] NULL,
[W_Type] [int] NULL,
[R_Price] [money] NULL,
[R_Num] [int] NULL,
[Remind] [nvarchar](500) NULL,
CONSTRAINT [PK_ZL_Cart_Present] 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_Cart_Present
drop table ZL_Cart_Present
TRUNCATE table ZL_Cart_Present