/****** Object: Table [dbo].[Pub_VideoPush] Script Date: 08/04/2017 16:51:29 ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON IF not EXISTS (SELECT * FROM sysobjects WHERE name = 'Pub_VideoPush') Begin CREATE TABLE [dbo].[Pub_VideoPush]( [Guid] [nvarchar](32) NOT NULL, [Version] [int] NOT NULL, [VideoGuid] [nvarchar](32) NOT NULL, [Createime] [datetime] NOT NULL, [Status] [int] NOT NULL, [Remark] [nvarchar](2000) NULL, [FinishTime] [datetime] NULL, CONSTRAINT [PK_Pub_VideoPush] 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_VideoPush', @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_VideoPush', @level2type=N'COLUMN',@level2name=N'Version' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频Guid type:text required:true required_msg:视频的Guid不能为空 required_default:null' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_VideoPush', @level2type=N'COLUMN',@level2name=N'VideoGuid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间 type:datetime required:true required_msg:请选择创建时间 required_default:null regex:datetime regex_msg:创建时间格式不正确' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_VideoPush', @level2type=N'COLUMN',@level2name=N'Createime' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'推送状态 type:checkbox enum:{未推送=0,推送中=1,已推送=2} default:0 tooltip:标示推送的状态' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_VideoPush', @level2type=N'COLUMN',@level2name=N'Status' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注 type:text' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_VideoPush', @level2type=N'COLUMN',@level2name=N'Remark' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'完成时间 type:datetime regex:datetime regex_msg:完成时间格式不正确' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_VideoPush', @level2type=N'COLUMN',@level2name=N'FinishTime' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'推送视频备注表 fk_name:VideoGuid' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_VideoPush' END