SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Page](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_page_name]  DEFAULT (''),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_page_content]  DEFAULT (''),
	[naviid] [int] NOT NULL CONSTRAINT [DF_Page_page_menuid]  DEFAULT ((0)),
	[picpath] [nvarchar](80) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[clicks] [int] NOT NULL CONSTRAINT [DF_Page_page_clicks]  DEFAULT ((0)),
	[userid] [int] NOT NULL CONSTRAINT [DF_Page_userid]  DEFAULT ((0)),
	[memberid] [int] NOT NULL CONSTRAINT [DF_Page_memberid]  DEFAULT ((0)),
	[addtime] [datetime] NOT NULL,
	[updatetime] [datetime] NOT NULL,
	[expand1] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand1]  DEFAULT (''),
	[expand2] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand2]  DEFAULT (''),
	[expand3] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand3]  DEFAULT (''),
	[expand4] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand4]  DEFAULT (''),
	[expand5] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand5]  DEFAULT (''),
	[expand6] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand6]  DEFAULT (''),
	[expand7] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand7]  DEFAULT (''),
	[expand8] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand8]  DEFAULT (''),
	[expand9] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand9]  DEFAULT (''),
	[expand10] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand10]  DEFAULT (''),
	[expand11] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand11]  DEFAULT (''),
	[expand12] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand12]  DEFAULT (''),
	[expand13] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand13]  DEFAULT (''),
	[expand14] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand14]  DEFAULT (''),
	[expand15] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand15]  DEFAULT (''),
	[expand16] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand16]  DEFAULT (''),
	[expand17] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand17]  DEFAULT (''),
	[expand18] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand18]  DEFAULT (''),
	[expand19] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand19]  DEFAULT (''),
	[expand20] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Page_expand20]  DEFAULT (''),
 CONSTRAINT [PK_Page] 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'Page', @level2type=N'COLUMN', @level2name=N'id'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单页模型-内容表(单页名称)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Page', @level2type=N'COLUMN', @level2name=N'title'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单页模型-内容表(单页内容)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Page', @level2type=N'COLUMN', @level2name=N'content'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单页模型-内容表(所属导航ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Page', @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'Page', @level2type=N'COLUMN', @level2name=N'picpath'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单页模型-内容表(单页点击数)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Page', @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'Page', @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'Page', @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'Page', @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'Page', @level2type=N'COLUMN', @level2name=N'updatetime'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单页模型-内容表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @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'Page', @level2type=N'COLUMN', @level2name=N'expand20'
