/****** Object: Table [dbo].[Pub_PV] Script Date: 12/05/2016 17:25:26 ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON IF not EXISTS (SELECT * FROM sysobjects WHERE name = 'Pub_PV') Begin CREATE TABLE [dbo].[Pub_PV]( [Guid] [nchar](32) NOT NULL, [Vserion] [int] NOT NULL, [DayViewCount] [int] NOT NULL, [WeekViewCount] [int] NOT NULL, [MonthViewCount] [int] NOT NULL, [YearViewCount] [int] NOT NULL, [AllViewCount] [int] NOT NULL, CONSTRAINT [PK_Pub_PV] 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_PV', @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_PV', @level2type=N'COLUMN',@level2name=N'Vserion' 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_PV', @level2type=N'COLUMN',@level2name=N'DayViewCount' 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_PV', @level2type=N'COLUMN',@level2name=N'WeekViewCount' 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_PV', @level2type=N'COLUMN',@level2name=N'MonthViewCount' 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_PV', @level2type=N'COLUMN',@level2name=N'YearViewCount' 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_PV', @level2type=N'COLUMN',@level2name=N'AllViewCount' 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_PV' END