SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Article_Review](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[articleid] [int] NOT NULL CONSTRAINT [DF_Article_Review_artrew_artid]  DEFAULT ((0)),
	[naviid] [int] NOT NULL,
	[memberid] [int] NOT NULL CONSTRAINT [DF_Article_Review_userid]  DEFAULT ((0)),
	[nickname] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Article_Review_artrew_name]  DEFAULT (''),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Article_Review_artrew_content]  DEFAULT (''),
	[addtime] [datetime] NOT NULL,
	[ip] [nvarchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Article_Review_artrew_ip]  DEFAULT (''),
	[os] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Article_Review_os]  DEFAULT (''),
	[browser] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Article_Review_browser]  DEFAULT (''),
	[ishide] [bit] NOT NULL,
	[isaudit] [bit] NOT NULL,
 CONSTRAINT [PK_Article_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'Article_Review', @level2type=N'COLUMN', @level2name=N'id'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文章模型-文章评论表(所属文章ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Article_Review', @level2type=N'COLUMN', @level2name=N'articleid'

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

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文章模型-文章评论表(评论人ID,0为游客)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Article_Review', @level2type=N'COLUMN', @level2name=N'memberid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文章模型-文章评论表(评论人昵称)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Article_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'Article_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'Article_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'Article_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'Article_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'Article_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'Article_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'Article_Review', @level2type=N'COLUMN', @level2name=N'isaudit'
