/****** Object: Table [dbo].[Pub_JYQNotice] Script Date: 09/02/2015 15:06:31 ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON IF not EXISTS (SELECT * FROM sysobjects WHERE name = 'Pub_JYQNotice') Begin CREATE TABLE [dbo].[Pub_JYQNotice]( [Guid] [nvarchar](32) NOT NULL, [Version] [int] NOT NULL, [SortNumber] [int] NOT NULL, [Status] [int] NOT NULL, [JiaoYanQuanGuid] [nvarchar](32) NOT NULL, [Title] [nvarchar](256) NOT NULL, [Description] [ntext] NULL, [AddTime] [datetime] NOT NULL, [ActiveBeginDate] [datetime] NOT NULL, [ActiveEndDate] [datetime] NULL, CONSTRAINT [PK_PUB_JYQNOTICE] 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_JYQNotice', @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_JYQNotice', @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_JYQNotice', @level2type=N'COLUMN',@level2name=N'SortNumber' 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_JYQNotice', @level2type=N'COLUMN',@level2name=N'Status' 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_JYQNotice', @level2type=N'COLUMN',@level2name=N'JiaoYanQuanGuid' 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_JYQNotice', @level2type=N'COLUMN',@level2name=N'Title' 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_JYQNotice', @level2type=N'COLUMN',@level2name=N'Description' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'添加时间 type:datetime required:true required_msg:请选择添加时间 required_default:null regex:datetime regex_msg:添加时间格式不正确' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_JYQNotice', @level2type=N'COLUMN',@level2name=N'AddTime' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开始日期 type:date required:true required_msg:请选择开始日期 required_default:null regex:date regex_msg:开始日期格式不正确' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_JYQNotice', @level2type=N'COLUMN',@level2name=N'ActiveBeginDate' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结束日期 type:date regex:date regex_msg:结束日期格式不正确' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_JYQNotice', @level2type=N'COLUMN',@level2name=N'ActiveEndDate' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'圈子公告 ref_table: autosort:SortNumber ASC fk_name:Version' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pub_JYQNotice' END