表名:ZL_Order_Share












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2UserIDint40    用户ID
3Titlenvarchar2000    标题
4Scoreint40    评分1-5
5Labelsnvarchar4000    标签
6MsgContentnvarchar20000    内容
7Imgsnvarchar20000    图片
8IsAnonymousint40    是否匿名 0:否,1:是
9CDatedatetime83    创建时间
10OrderIDint40     
11ProIDint40    晒单所属商品
12Pidint40    0为主列表,其余为回复信息
13OrderDatedatetime83    下单时间
14ReplyIDint40    回复的信息ID
15ReplyUidint40    回复的用户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

--注意:清空且复位表ID序列为初始值

TRUNCATE table ZL_Order_Share