SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Module](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Module_module_name]  DEFAULT (''),
	[alias] [nvarchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Module_alias]  DEFAULT (''),
	[intro] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Module_intro]  DEFAULT (''),
	[rewrite_list] [nvarchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Module_rewrite]  DEFAULT (''),
	[rewrite_info] [nvarchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Module_rewrite_info]  DEFAULT (''),
	[issole] [bit] NOT NULL,
	[open] [bit] NOT NULL,
 CONSTRAINT [PK_Module] 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'Module', @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'Module', @level2type=N'COLUMN', @level2name=N'name'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'模型配置-内容表(模型别名)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Module', @level2type=N'COLUMN', @level2name=N'alias'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'模型配置-内容表(模型介绍说明)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Module', @level2type=N'COLUMN', @level2name=N'intro'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'模型配置-内容表(重写模板列表页规则)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Module', @level2type=N'COLUMN', @level2name=N'rewrite_list'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'模型配置-内容表(重写模板信息页规则)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Module', @level2type=N'COLUMN', @level2name=N'rewrite_info'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'模型配置-内容表(是否唯一,1为唯一)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Module', @level2type=N'COLUMN', @level2name=N'issole'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'模型配置-内容表(系统开关,1为开)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Module', @level2type=N'COLUMN', @level2name=N'open'

insert into Module ([name],alias,intro,rewrite_list,rewrite_info,issole,[open])values('单页模型','Page','这是单页模型介绍','PageList.aspx','PageInfo.aspx','True','True')
insert into Module ([name],alias,intro,rewrite_list,rewrite_info,issole,[open])values('图册模型','Pic','这是图册模型介绍','PicList.aspx','PicInfo.aspx','True','True')
insert into Module ([name],alias,intro,rewrite_list,rewrite_info,issole,[open])values('文章模型','Article','这是文章模型介绍','ArticleList.aspx','ArticleInfo.aspx','True','True')
insert into Module ([name],alias,intro,rewrite_list,rewrite_info,issole,[open])values('产品模型','Product','这是产品模型介绍','ProductList.aspx','ProductInfo.aspx','True','True')
insert into Module ([name],alias,intro,rewrite_list,rewrite_info,issole,[open])values('下载模型','Download','这是下载模型介绍','DownloadList.aspx','DownloadInfo.aspx','True','True')
insert into Module ([name],alias,intro,rewrite_list,rewrite_info,issole,[open])values('视频模型','Video','这是视频模型介绍','VideoList.aspx','VideoInfo.aspx','True','True')
insert into Module ([name],alias,intro,rewrite_list,rewrite_info,issole,[open])values('人才模型','Job','这是人才模型介绍','JobList.aspx','JobInfo.aspx','True','True')
insert into Module ([name],alias,intro,rewrite_list,rewrite_info,issole,[open])values('留言模型','Message','这是留言模型介绍','MessageList.aspx','MessageInfo.aspx','True','True')