/****** Object: Table [dbo].[Pub_WebCastUrl] Script Date: 04/25/2016 10:09:52 ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON IF not EXISTS (SELECT * FROM sysobjects WHERE name = 'Pub_WebCastUrl') Begin CREATE TABLE [dbo].[Pub_WebCastUrl]( [Guid] [nvarchar](32) NOT NULL, [Version] [int] NOT NULL, [WebCastGuid] [nvarchar](32) NOT NULL, [LiveUrl] [nvarchar](2000) NOT NULL, [Status] [int] NOT NULL, [LiveUrlType] [int] NOT NULL, [UrlWeight] [int] NOT NULL, CONSTRAINT [PK_Pub_WebCastUrl] 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_WebCastUrl', @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_WebCastUrl', @level2type=N'COLUMN',@level2name=N'Version' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属直播室 type:selectbox fk_table:Pub_WebCast fk_key:Guid fk_name:Name required:true required_msg:请选择所属直播室 required_default:null' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_WebCastUrl', @level2type=N'COLUMN',@level2name=N'WebCastGuid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'直播地址 type:text required:true required_msg:请输入直播地址 required_default:null' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_WebCastUrl', @level2type=N'COLUMN',@level2name=N'LiveUrl' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'状态 type:checkbox enum:{作废=0,有效=1} default:0 tooltip:标示记录是否有效' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_WebCastUrl', @level2type=N'COLUMN',@level2name=N'Status' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'直播地址类型 type:select enum:{RTSP=0,RTMP=1,HLS=2} default:0 required:true required_msg:请选择直播地址 required_default:null' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_WebCastUrl', @level2type=N'COLUMN',@level2name=N'LiveUrlType' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'权重值 type:text default:0 required:true required_msg:权重不能为空 required_default:null regex:num1 regex_msg:排序号应为数字 tooltip:标示记录在相同类型的记录中的位置' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_WebCastUrl', @level2type=N'COLUMN',@level2name=N'UrlWeight' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'网络直播地址 ref_table: autosort:true fk_name:Pub_WebCast.Name,LiveUrl' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_WebCastUrl' ALTER TABLE [dbo].[Pub_WebCastUrl] ADD CONSTRAINT [DF_Pub_WebCastUrl_Status] DEFAULT ((1)) FOR [Status] END