/****** Object: Table [dbo].[Pub_PVDay] Script Date: 12/06/2016 17:31:16 ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON IF not EXISTS (SELECT * FROM sysobjects WHERE name = 'Pub_PVDay') Begin CREATE TABLE [dbo].[Pub_PVDay]( [Guid] [nvarchar](32) NOT NULL, [Version] [int] NOT NULL, [Day] [datetime] NOT NULL, [PVTarget] [nvarchar](32) NOT NULL, [DayCount] [int] NOT NULL, [PVType] [int] NOT NULL, CONSTRAINT [PK_PVDay] PRIMARY KEY CLUSTERED ( [Guid] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Guid type:text primary:true tooltip:记录主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_PVDay', @level2type=N'COLUMN',@level2name=N'Guid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'版本号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_PVDay', @level2type=N'COLUMN',@level2name=N'Version' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间 type:text forbidpost:true' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_PVDay', @level2type=N'COLUMN',@level2name=N'Day' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'访问对象 type:text forbidpost:true' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_PVDay', @level2type=N'COLUMN',@level2name=N'PVTarget' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'每日访问量 type:text forbidpost:true' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_PVDay', @level2type=N'COLUMN',@level2name=N'DayCount' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'访问类型 type:text forbidpost:true' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_PVDay', @level2type=N'COLUMN',@level2name=N'PVType' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'每天访问量 fk_name:Version' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_PVDay' END