SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Tag](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[url] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Tag_url]  DEFAULT (''),
	[isbold] [bit] NOT NULL,
	[color] [nvarchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Tag_color]  DEFAULT (''),
	[issearch] [bit] NOT NULL CONSTRAINT [DF_Tag_issearch]  DEFAULT ((0)),
 CONSTRAINT [PK_Tag] 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'Tag关键词表-记录表(主键)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Tag', @level2type=N'COLUMN', @level2name=N'id'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Tag关键词表-记录表(Tag名称)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Tag', @level2type=N'COLUMN', @level2name=N'name'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Tag关键词表-记录表(Tag链接地址)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Tag', @level2type=N'COLUMN', @level2name=N'url'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Tag关键词表-记录表(Tag是否加粗)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Tag', @level2type=N'COLUMN', @level2name=N'isbold'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Tag关键词表-记录表(Tag字体颜色值)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Tag', @level2type=N'COLUMN', @level2name=N'color'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Tag关键词表-记录表(是否搜索tag)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Tag', @level2type=N'COLUMN', @level2name=N'issearch'
