SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Video_Review](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[videoid] [int] NOT NULL CONSTRAINT [DF_Video_Review_videoid]  DEFAULT ((0)),
	[naviid] [int] NOT NULL,
	[memberid] [int] NOT NULL CONSTRAINT [DF_Video_Review_memberid]  DEFAULT ((0)),
	[nickname] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_Review_nickname]  DEFAULT (''),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_Review_content]  DEFAULT (''),
	[addtime] [datetime] NOT NULL,
	[ip] [nvarchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_Review_ip]  DEFAULT (''),
	[os] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_Review_os]  DEFAULT (''),
	[browser] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_Review_browser]  DEFAULT (''),
	[ishide] [bit] NOT NULL,
	[isaudit] [bit] NOT NULL,
 CONSTRAINT [PK_Video_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'Video_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'Video_Review', @level2type=N'COLUMN', @level2name=N'videoid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-视频评论表(所属导航ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video_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'Video_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'Video_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'Video_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'Video_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'Video_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'Video_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'Video_Review', @level2type=N'COLUMN', @level2name=N'browser'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-视频评论表(是否隐藏,管理员可见,true为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video_Review', @level2type=N'COLUMN', @level2name=N'ishide'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-视频评论表(是否审核,true为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video_Review', @level2type=N'COLUMN', @level2name=N'isaudit'
