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