/****** Object: Table [dbo].[Pub_JYQUserApply] Script Date: 09/02/2015 15:08:30 ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON IF not EXISTS (SELECT * FROM sysobjects WHERE name = 'Pub_JYQUserApply') Begin CREATE TABLE [dbo].[Pub_JYQUserApply]( [Guid] [nvarchar](32) NOT NULL, [Version] [int] NOT NULL, [JiaoYanQuanGuid] [nvarchar](32) NOT NULL, [UserGuid] [nvarchar](32) NOT NULL, [ApplyStatus] [int] NOT NULL, [ApplyTime] [datetime] NULL, [ApplyRemark] [nvarchar](500) NULL, [ConfirmUserGuid] [nvarchar](32) NULL, [ConfirmTime] [datetime] NULL, [ConfirmRemark] [nvarchar](500) NULL, CONSTRAINT [PK_PUB_JYQUSERAPPLY] 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_JYQUserApply', @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_JYQUserApply', @level2type=N'COLUMN',@level2name=N'Version' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属教研圈 type:selectbox fk_table:Pub_JiaoYanQuan 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_JYQUserApply', @level2type=N'COLUMN',@level2name=N'JiaoYanQuanGuid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属用户 type:selectbox fk_table:Pub_User 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_JYQUserApply', @level2type=N'COLUMN',@level2name=N'UserGuid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'申请状态 type:select enum:{申请=0,批准=1,拒绝=2} required:true required_msg:请选择申请状态 required_default:null' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_JYQUserApply', @level2type=N'COLUMN',@level2name=N'ApplyStatus' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'申请时间 type:datetime required_default:null regex:datetime regex_msg:申请时间格式不正确' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_JYQUserApply', @level2type=N'COLUMN',@level2name=N'ApplyTime' 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_JYQUserApply', @level2type=N'COLUMN',@level2name=N'ApplyRemark' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核用户 type:selectbox fk_table:Pub_User fk_prefix:Confirm' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_JYQUserApply', @level2type=N'COLUMN',@level2name=N'ConfirmUserGuid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'确认时间 type:datetime required_default:null regex:datetime regex_msg:确认时间格式不正确' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_JYQUserApply', @level2type=N'COLUMN',@level2name=N'ConfirmTime' 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_JYQUserApply', @level2type=N'COLUMN',@level2name=N'ConfirmRemark' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'圈子申请用户 ref_table: autosort:JiaoYanQuanGuid ASC, SortNumber ASC|JiaoYanQuanGuid,ParentJiaoYanQuan.Guid fk_name:Pub_User.UserName,Pub_JiaoYanQuan.Name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_JYQUserApply' END