/****** Object: Table [dbo].[Pub_PVHistoryToday] Script Date: 12/05/2016 17:27:28 ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON IF not EXISTS (SELECT * FROM sysobjects WHERE name = 'Pub_PVHistoryToday') Begin CREATE TABLE [dbo].[Pub_PVHistoryToday]( [Guid] [nvarchar](32) NOT NULL, [Version] [int] NOT NULL, [PVType] [int] NOT NULL, [PVTarget] [nvarchar](32) NOT NULL, [PVGuid] [nvarchar](32) NULL, [PVIP] [nvarchar](32) NULL, [UserGuid] [nvarchar](32) NULL, [CreateTime] [datetime] NOT NULL, [DomainGuid] [nvarchar](32) NULL, CONSTRAINT [PK_PUB_PVHISTORYTODAY] 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_PVHistoryToday', @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_PVHistoryToday', @level2type=N'COLUMN',@level2name=N'Version' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属视频 type:selectbox fk_table:Pub_Video required:true required_msg:请选择所属视频 required_default:null' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_PVHistoryToday', @level2type=N'COLUMN',@level2name=N'PVType' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'播放用户 type:selectbox fk_table:Pub_User required:true required_msg:请选择播放用户 required_default:null' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_PVHistoryToday', @level2type=N'COLUMN',@level2name=N'UserGuid' 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_PVHistoryToday', @level2type=N'COLUMN',@level2name=N'CreateTime' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'记录域' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_PVHistoryToday', @level2type=N'COLUMN',@level2name=N'DomainGuid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'播放历史 fk_name:Pub_Video.Name,Pub_User.UserName,Pub_User.TrueName' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_PVHistoryToday' END