序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | UserID | int | 4 | 0 | 是 | 用户ID | ||||
3 | Title | nvarchar | 200 | 0 | 是 | 标题 | ||||
4 | Score | int | 4 | 0 | 是 | 评分1-5 | ||||
5 | Labels | nvarchar | 400 | 0 | 是 | 标签 | ||||
6 | MsgContent | nvarchar | 2000 | 0 | 是 | 内容 | ||||
7 | Imgs | nvarchar | 2000 | 0 | 是 | 图片 | ||||
8 | IsAnonymous | int | 4 | 0 | 是 | 是否匿名 0:否,1:是 | ||||
9 | CDate | datetime | 8 | 3 | 是 | 创建时间 | ||||
10 | OrderID | int | 4 | 0 | 是 | |||||
11 | ProID | int | 4 | 0 | 是 | 晒单所属商品 | ||||
12 | Pid | int | 4 | 0 | 是 | 0为主列表,其余为回复信息 | ||||
13 | OrderDate | datetime | 8 | 3 | 是 | 下单时间 | ||||
14 | ReplyID | int | 4 | 0 | 是 | 回复的信息ID | ||||
15 | ReplyUid | int | 4 | 0 | 是 | 回复的用户ID,用户名和组动态获取(视图?) |
用户晒单表
GO
CREATE TABLE [dbo].[ZL_Order_Share](
[ID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NULL,
[Title] [nvarchar](200) NULL,
[Score] [int] NULL,
[Labels] [nvarchar](400) NULL,
[MsgContent] [nvarchar](2000) NULL,
[Imgs] [nvarchar](2000) NULL,
[IsAnonymous] [int] NULL,
[CDate] [datetime] NULL,
[OrderID] [int] NULL,
[ProID] [int] NULL,
[Pid] [int] NULL,
[OrderDate] [datetime] NULL,
[ReplyID] [int] NULL,
[ReplyUid] [int] NULL,
CONSTRAINT [PK_ZL_Order_Share] 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_Order_Share
drop table ZL_Order_Share
TRUNCATE table ZL_Order_Share