/****** Object: Table [dbo].[Pub_DomainChannel] Script Date: 10/08/2015 16:15:19 ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON IF not EXISTS (SELECT * FROM sysobjects WHERE name = 'Pub_DomainChannel') Begin CREATE TABLE [dbo].[Pub_DomainChannel]( [Guid] [nvarchar](32) NOT NULL, [Version] [int] NOT NULL, [DomainGuid] [nvarchar](32) NOT NULL, [ChannelGuid] [nvarchar](32) NOT NULL, CONSTRAINT [PK_PUB_DOMAINCHANNEL] 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_DomainChannel', @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_DomainChannel', @level2type=N'COLUMN',@level2name=N'Version' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属平台 type:selectbox fk_table:Pub_Domain required:true required_msg:请选择所属平台 required_default:null' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_DomainChannel', @level2type=N'COLUMN',@level2name=N'DomainGuid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属课程 type:selectbox fk_table:Pub_Channel required:true required_msg:请选择所属课程 required_default:null' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_DomainChannel', @level2type=N'COLUMN',@level2name=N'ChannelGuid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'平台课程 ref_table:Pub_Domain,Pub_Channel autosort: fk_name:Pub_Domain.Name,Pub_Channel.Name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_DomainChannel' END