SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Visit_Search](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[keyword] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Visit_Search_keyword]  DEFAULT (''),
	[pinyin] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Visit_Search_pinyin]  DEFAULT (''),
	[result] [int] NOT NULL CONSTRAINT [DF_Visit_Search_result]  DEFAULT ((0)),
	[number] [int] NOT NULL CONSTRAINT [DF_Visit_Menu_menuvisit_number]  DEFAULT ((0)),
	[addtime] [datetime] NOT NULL,
	[updatetime] [datetime] NOT NULL,
 CONSTRAINT [PK_Visit_Menu] 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_Search', @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_Search', @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'Visit_Search', @level2type=N'COLUMN', @level2name=N'pinyin'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'智能搜索记录-记录表(搜索结果数)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Visit_Search', @level2type=N'COLUMN', @level2name=N'result'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'智能搜索记录-记录表(搜索次数)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Visit_Search', @level2type=N'COLUMN', @level2name=N'number'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'智能搜索记录-记录表(添加时间)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Visit_Search', @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_Search', @level2type=N'COLUMN', @level2name=N'updatetime'
