/****** Object: Table [dbo].[Pub_JYQBKPlan] Script Date: 09/02/2015 15:02:06 ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON IF not EXISTS (SELECT * FROM sysobjects WHERE name = 'Pub_JYQBKPlan') Begin CREATE TABLE [dbo].[Pub_JYQBKPlan]( [Guid] [nvarchar](32) NOT NULL, [Version] [int] NOT NULL, [SortNumber] [int] NOT NULL, [Type] [int] NOT NULL, [JYQBeiKeGuid] [nvarchar](32) NOT NULL, [Content] [ntext] NULL, CONSTRAINT [PK_PUB_JYQBKPLAN] 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] TEXTIMAGE_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_JYQBKPlan', @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_JYQBKPlan', @level2type=N'COLUMN',@level2name=N'Version' 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_JYQBKPlan', @level2type=N'COLUMN',@level2name=N'SortNumber' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主备类型 type:select enum:{教学目标=0,学情分析=1,重点难点=2,教学过程=3,课堂实录=4} default:0 tooltip:标示记录是否有效' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_JYQBKPlan', @level2type=N'COLUMN',@level2name=N'Type' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属备课活动 type:selectbox fk_table:Pub_JYQBeiKe 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_JYQBKPlan', @level2type=N'COLUMN',@level2name=N'JYQBeiKeGuid' 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_JYQBKPlan', @level2type=N'COLUMN',@level2name=N'Content' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备课主备 ref_table:Pub_JYQBKXieBei|Delete|SortNumber ASC autosort:JYQBeiKeGuid ASC, SortNumber ASC|JYQBeiKeGuid,ParentJYQBeiKe.Guid fk_name:Pub_JYQBeiKe.Name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_JYQBKPlan' END