/****** Object: Table [dbo].[Pub_VideoMoveFTP] Script Date: 11/18/2016 10:01:00 ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON IF not EXISTS (SELECT * FROM sysobjects WHERE name = 'Pub_VideoMoveFTP') Begin CREATE TABLE [dbo].[Pub_VideoMoveFTP]( [Guid] [nvarchar](32) NOT NULL, [Version] [int] NOT NULL, [VideoGuid] [nvarchar](32) NOT NULL, [Status] [int] NOT NULL, [Message] [nvarchar](2000) NULL, [PushTime] [datetime] NOT NULL, CONSTRAINT [PK_Pub_VideoMoveFTP] 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_VideoMoveFTP', @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_VideoMoveFTP', @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_VideoMoveFTP', @level2type=N'COLUMN',@level2name=N'VideoGuid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频推送状态 type:select enum:{未开始=0,已完成=1,迁移出错=2,视频正在迁移=3} default:0 tooltip:表示迁移状态' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_VideoMoveFTP', @level2type=N'COLUMN',@level2name=N'Status' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'推送信息 type:textarea css:width400 height100' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_VideoMoveFTP', @level2type=N'COLUMN',@level2name=N'Message' 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_VideoMoveFTP', @level2type=N'COLUMN',@level2name=N'PushTime' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频FTP推送 ref_table:Pub_Video autosort: fk_name:Pub_Video.Name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_VideoMoveFTP' END