SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Visit_Site](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[pagename] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Visit_Site_websisit_pagename]  DEFAULT (''),
	[pageurl] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Visit_Site_websisit_pageurl]  DEFAULT (''),
	[ip] [nvarchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Visit_Site_websisit_ip]  DEFAULT (''),
	[os] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Visit_Site_websisit_os]  DEFAULT (''),
	[browser] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Visit_Site_websisit_browser]  DEFAULT (''),
	[addtime] [datetime] NOT NULL,
	[updatetime] [datetime] NOT NULL,
	[number] [int] NOT NULL CONSTRAINT [DF_Visit_Site_websisit_number]  DEFAULT ((0)),
	[naviid] [int] NOT NULL CONSTRAINT [DF_Visit_Site_naviid]  DEFAULT ((0)),
 CONSTRAINT [PK_Visit_Site] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'全站访问记录-记录表(主键)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Visit_Site', @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'Visit_Site', @level2type=N'COLUMN', @level2name=N'pagename'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'全站访问记录-记录表(访问Url)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Visit_Site', @level2type=N'COLUMN', @level2name=N'pageurl'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'全站访问记录-记录表(访问人IP)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Visit_Site', @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'Visit_Site', @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'Visit_Site', @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'Visit_Site', @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'Visit_Site', @level2type=N'COLUMN', @level2name=N'updatetime'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'全站访问记录-记录表(访问次数)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Visit_Site', @level2type=N'COLUMN', @level2name=N'number'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'全站访问记录-记录表(导航ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Visit_Site', @level2type=N'COLUMN', @level2name=N'naviid'
