SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [VisitHistory](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Category] [int] NULL,
	[Information] [int] NULL,
	[UserID] [int] NULL,
	[UpdateDate] [datetime] NULL,
 CONSTRAINT [PK_VisitHistory] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
ALTER TABLE [VisitHistory] ADD  CONSTRAINT [DF_VisitHistory_UpdateDate]  DEFAULT (getdate()) FOR [UpdateDate]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'自定义类别,同数字代表不同的频道或功能,1访问交流页聊天功能' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'VisitHistory', @level2type=N'COLUMN',@level2name=N'Category'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'自定义分类下的信息编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'VisitHistory', @level2type=N'COLUMN',@level2name=N'Information'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'用户编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'VisitHistory', @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'VisitHistory', @level2type=N'COLUMN',@level2name=N'UpdateDate'
GO
