序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Name | nvarchar | 200 | 0 | 是 | 组合名称 | ||||
3 | ProIDS | varchar | MAX | 0 | 是 | 商品IDS(只是做为记录,实际值应该取ParentID=其的值) | ||||
4 | AdminID | int | 4 | 0 | 是 | 创建管理员ID | ||||
5 | CDate | datetime | 8 | 3 | 是 | 创建时间 | ||||
6 | Remind | nvarchar | 500 | 0 | 是 | 备注信息 | ||||
7 | UserID | int | 4 | 0 | 是 | |||||
8 | StoreID | int | 4 | 0 | 是 | 店铺ID |
商品组合表
GO
CREATE TABLE [dbo].[ZL_Shop_GroupPro](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](200) NULL,
[ProIDS] [varchar](max) NULL,
[AdminID] [int] NULL,
[CDate] [datetime] NULL,
[Remind] [nvarchar](500) NULL,
[UserID] [int] NULL,
[StoreID] [int] NULL,
CONSTRAINT [PK_ZL_Shop_GroupPro] 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] TEXTIMAGE_ON [PRIMARY]
SET IDENTITY_INSERT [ZL_Shop_GroupPro] ON
INSERT [ZL_Shop_GroupPro] ([ID],[Name],[ProIDS],[AdminID],[CDate],[Remind],[StoreID]) VALUES ( 1,N'示例单品组合',N'3,2,1',0,N'2016/11/28 20:40:48',N'示例商品组合','0')
SET IDENTITY_INSERT [ZL_Shop_GroupPro] OFF
detele from ZL_Shop_GroupPro
drop table ZL_Shop_GroupPro
TRUNCATE table ZL_Shop_GroupPro