SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Notice](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Notice_art_title]  DEFAULT (''),
	[t_isbold] [bit] NOT NULL,
	[t_color] [nvarchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Notice_art_t_color]  DEFAULT (''),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Notice_art_content]  DEFAULT (''),
	[keyword] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Notice_art_key]  DEFAULT (''),
	[description] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Notice_art_description]  DEFAULT (''),
	[clicks] [int] NOT NULL CONSTRAINT [DF_Notice_art_clicks]  DEFAULT ((0)),
	[userid] [int] NOT NULL CONSTRAINT [DF_Notice_userid]  DEFAULT ((0)),
	[addtime] [datetime] NOT NULL,
	[updatetime] [datetime] NOT NULL,
 CONSTRAINT [PK_Notice] 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'Notice', @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'Notice', @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'Notice', @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'Notice', @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'Notice', @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'Notice', @level2type=N'COLUMN', @level2name=N'keyword'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'公告模型-内容表(公告描述,摘要)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Notice', @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'Notice', @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'Notice', @level2type=N'COLUMN', @level2name=N'userid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'公告模型-内容表(公告添加时间)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Notice', @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'Notice', @level2type=N'COLUMN', @level2name=N'updatetime'
