SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NaviBar](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[moduleid] [int] NOT NULL CONSTRAINT [DF_Header_Menu_hmenu_module]  DEFAULT ((0)),
	[parent] [int] NOT NULL CONSTRAINT [DF_Header_Menu_hmenu_parenid]  DEFAULT ((0)),
	[name] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Header_Menu_hmenu_name]  DEFAULT (''),
	[en_name] [nvarchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_NaviBar_en_name]  DEFAULT (''),
	[jumplink] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Header_Menu_hmenu_gotolink]  DEFAULT (''),
	[target] [bit] NOT NULL,
	[orderid] [int] NOT NULL CONSTRAINT [DF_Header_Menu_hmenu_order]  DEFAULT ((0)),
	[ishide] [bit] NOT NULL,
	[pagesize] [int] NOT NULL CONSTRAINT [DF_NaviBar_pagesize]  DEFAULT ((0)),
	[rewrite] [nvarchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Header_Menu_hmenu_rewritename]  DEFAULT (''),
	[addtime] [datetime] NOT NULL,
	[updatetime] [datetime] NOT NULL,
	[keyword] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[description] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[templatelist] [nvarchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_NaviBar_template]  DEFAULT (''),
	[templateinfo] [nvarchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_NaviBar_templateinfo]  DEFAULT (''),
 CONSTRAINT [PK_Header_Menu] 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'NaviBar', @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'NaviBar', @level2type=N'COLUMN', @level2name=N'moduleid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'导航-记录表(所属父级ID,0直接父级)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'NaviBar', @level2type=N'COLUMN', @level2name=N'parent'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'导航-记录表(导航名称)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'NaviBar', @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'NaviBar', @level2type=N'COLUMN', @level2name=N'en_name'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'导航-记录表(外部链接)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'NaviBar', @level2type=N'COLUMN', @level2name=N'jumplink'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'导航-记录表(是否新窗口,1为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'NaviBar', @level2type=N'COLUMN', @level2name=N'target'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'导航-记录表(排序ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'NaviBar', @level2type=N'COLUMN', @level2name=N'orderid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'导航-记录表(是否隐藏,1为是)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'NaviBar', @level2type=N'COLUMN', @level2name=N'ishide'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'导航-记录表(分页显示数)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'NaviBar', @level2type=N'COLUMN', @level2name=N'pagesize'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'导航-记录表(重写Url名)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'NaviBar', @level2type=N'COLUMN', @level2name=N'rewrite'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'导航-记录表(添加时间)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'NaviBar', @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'NaviBar', @level2type=N'COLUMN', @level2name=N'updatetime'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'导航-记录表(栏目SEO关键字)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'NaviBar', @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'NaviBar', @level2type=N'COLUMN', @level2name=N'description'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'导航-记录表(对应模板列表文件)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'NaviBar', @level2type=N'COLUMN', @level2name=N'templatelist'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'导航-记录表(对应模板内容文件)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'NaviBar', @level2type=N'COLUMN', @level2name=N'templateinfo'
