SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Product_Review](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[memberid] [int] NOT NULL CONSTRAINT [DF_Product_Review_memberid]  DEFAULT ((0)),
	[naviid] [int] NOT NULL,
	[productid] [int] NOT NULL,
	[nickname] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL,
	[addtime] [datetime] NOT NULL,
	[ip] [nvarchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[os] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Review_os]  DEFAULT (''),
	[browser] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Review_browser]  DEFAULT (''),
	[ishide] [bit] NOT NULL,
	[isaudit] [bit] NOT NULL,
 CONSTRAINT [PK_Product_Review] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-产品评论记录表(主键)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Review', @level2type=N'COLUMN', @level2name=N'id'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-产品评论记录表(所属会员ID,0为游客)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Review', @level2type=N'COLUMN', @level2name=N'memberid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-产品评论记录表(所属导航ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Review', @level2type=N'COLUMN', @level2name=N'naviid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-产品评论记录表(所属产品记录ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Review', @level2type=N'COLUMN', @level2name=N'productid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-产品评论记录表(评论人昵称)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Review', @level2type=N'COLUMN', @level2name=N'nickname'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-产品评论记录表(评论内容)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Review', @level2type=N'COLUMN', @level2name=N'content'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-产品评论记录表(添加时间)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Review', @level2type=N'COLUMN', @level2name=N'addtime'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-产品评论记录表(评论人IP)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Review', @level2type=N'COLUMN', @level2name=N'ip'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-产品评论记录表(评论人操作系统)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Review', @level2type=N'COLUMN', @level2name=N'os'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-产品评论记录表(评论人浏览器)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Review', @level2type=N'COLUMN', @level2name=N'browser'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-产品评论记录表(是否公开显示,1为不公开)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Review', @level2type=N'COLUMN', @level2name=N'ishide'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-产品评论记录表(是否审核,1为已审核)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Review', @level2type=N'COLUMN', @level2name=N'isaudit'
