SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Message](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[naviid] [int] NOT NULL,
	[userid] [int] NOT NULL CONSTRAINT [DF_Message_userid_1]  DEFAULT ((0)),
	[memberid] [int] NOT NULL CONSTRAINT [DF_Message_userid]  DEFAULT ((0)),
	[nickname] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_message_name]  DEFAULT (''),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_message_content]  DEFAULT (''),
	[contact] [nvarchar](1000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_message_contact]  DEFAULT (''),
	[ip] [nvarchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_message_ip]  DEFAULT (''),
	[os] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_os]  DEFAULT (''),
	[browser] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_browser]  DEFAULT (''),
	[addtime] [datetime] NOT NULL,
	[ishide] [bit] NOT NULL,
	[isaudit] [bit] NOT NULL,
	[expand1] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand1]  DEFAULT (''),
	[expand2] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand2]  DEFAULT (''),
	[expand3] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand3]  DEFAULT (''),
	[expand4] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand4]  DEFAULT (''),
	[expand5] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand5]  DEFAULT (''),
	[expand6] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand6]  DEFAULT (''),
	[expand7] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand7]  DEFAULT (''),
	[expand8] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand8]  DEFAULT (''),
	[expand9] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand9]  DEFAULT (''),
	[expand10] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand10]  DEFAULT (''),
	[expand11] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand11]  DEFAULT (''),
	[expand12] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand12]  DEFAULT (''),
	[expand13] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand13]  DEFAULT (''),
	[expand14] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand14]  DEFAULT (''),
	[expand15] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand15]  DEFAULT (''),
	[expand16] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand16]  DEFAULT (''),
	[expand17] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand17]  DEFAULT (''),
	[expand18] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand18]  DEFAULT (''),
	[expand19] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand19]  DEFAULT (''),
	[expand20] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Message_expand20]  DEFAULT (''),
 CONSTRAINT [PK_Message] 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'Message', @level2type=N'COLUMN', @level2name=N'id'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'留言模型-内容表(所属导航ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Message', @level2type=N'COLUMN', @level2name=N'naviid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'留言模型-记录表(所属用户ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Message', @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'Message', @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'Message', @level2type=N'COLUMN', @level2name=N'nickname'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'留言模型-记录表(留言内容)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Message', @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'Message', @level2type=N'COLUMN', @level2name=N'contact'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'留言模型-记录表(留言者IP)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Message', @level2type=N'COLUMN', @level2name=N'ip'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'留言模型-记录表(留言者操作系统)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Message', @level2type=N'COLUMN', @level2name=N'os'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'留言模型-记录表(留言者浏览器)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Message', @level2type=N'COLUMN', @level2name=N'browser'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'留言模型-记录表(添加时间)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Message', @level2type=N'COLUMN', @level2name=N'addtime'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'留言模型-记录表(是否公开显示,1为不显示)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Message', @level2type=N'COLUMN', @level2name=N'ishide'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'留言模型-记录表(是否审核,1为已审核)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Message', @level2type=N'COLUMN', @level2name=N'isaudit'

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