SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Video](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[naviid] [int] NOT NULL CONSTRAINT [DF_Video_naviid]  DEFAULT ((0)),
	[title] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_title]  DEFAULT (''),
	[t_isbold] [bit] NOT NULL,
	[t_color] [nvarchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_t_color]  DEFAULT (''),
	[videopath] [nvarchar](80) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_videopath]  DEFAULT (''),
	[autoplay] [bit] NOT NULL,
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_content]  DEFAULT (''),
	[picpath] [nvarchar](80) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_picpath]  DEFAULT (''),
	[keyword] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_keyword]  DEFAULT (''),
	[description] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_description]  DEFAULT (''),
	[rewrite] [nvarchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_rewrite]  DEFAULT (''),
	[jumplink] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Video_jumplink]  DEFAULT (''),
	[clicks] [int] NOT NULL CONSTRAINT [DF_Video_clicks]  DEFAULT ((0)),
	[userid] [int] NOT NULL CONSTRAINT [DF_Video_userid]  DEFAULT ((0)),
	[memberid] [int] NOT NULL CONSTRAINT [DF_Video_memberid]  DEFAULT ((0)),
	[addtime] [datetime] NOT NULL,
	[updatetime] [datetime] NOT NULL,
	[attribute1] [bit] NOT NULL,
	[attribute2] [bit] NOT NULL,
	[attribute3] [bit] NOT NULL,
	[attribute4] [bit] NOT NULL,
	[attribute5] [bit] NOT NULL,
	[attribute6] [bit] NOT NULL,
	[attribute7] [bit] NOT NULL,
	[attribute8] [bit] NOT NULL,
	[expand1] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand2] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand3] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand4] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand5] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand6] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand7] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand8] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand9] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand10] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand11] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand12] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand13] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand14] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand15] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand16] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand17] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand18] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand19] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand20] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
 CONSTRAINT [PK_Video] 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', @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', @level2type=N'COLUMN', @level2name=N'naviid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(视频标题)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'title'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(标题是否加粗,true为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N't_isbold'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(标题颜色)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N't_color'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(视频文件路径)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'videopath'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(是否自动播放,true为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'autoplay'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(视频内容)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @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', @level2type=N'COLUMN', @level2name=N'picpath'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(SEO关键字)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'keyword'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(SEO说明描述)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'description'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(url重写)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'rewrite'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(跳转Url)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'jumplink'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(视频点击数)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'clicks'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(所属用户ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'userid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(所属会员ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @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', @level2type=N'COLUMN', @level2name=N'addtime'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(最后更新时间)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'updatetime'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(属性1,推荐,置顶,等,true为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'attribute1'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(属性2,推荐,置顶,等,true为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'attribute2'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(属性3,推荐,置顶,等,true为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'attribute3'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(属性4,推荐,置顶,等,true为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'attribute4'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(属性5,推荐,置顶,等,true为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'attribute5'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(属性6,推荐,置顶,等,true为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'attribute6'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(属性7,推荐,置顶,等,true为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'attribute7'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(属性8,推荐,置顶,等,true为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'attribute8'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand1'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand2'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand3'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand4'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand5'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand6'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand7'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand8'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand9'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand10'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand11'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand12'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand13'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand14'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand15'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand16'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand17'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand18'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand19'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Video', @level2type=N'COLUMN', @level2name=N'expand20'
