849 lines
43 KiB
Transact-SQL
849 lines
43 KiB
Transact-SQL
|
||
CREATE TABLE [dbo].[Party_BasicInformation](
|
||
[BasicInformationId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[Name] [nvarchar](50) NULL,
|
||
[StartDate] [datetime] NULL,
|
||
[Component] [nvarchar](50) NULL,
|
||
[PartyerNum] [nvarchar](50) NULL,
|
||
[PersonNum] [nvarchar](50) NULL,
|
||
[PartyGroupNum] [nvarchar](50) NULL,
|
||
[Commendation] [nvarchar](500) NULL,
|
||
[Punishment] [nvarchar](500) NULL,
|
||
CONSTRAINT [PK_Party_BasicInformation] PRIMARY KEY CLUSTERED
|
||
(
|
||
[BasicInformationId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformation', @level2type=N'COLUMN',@level2name=N'BasicInformationId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformation', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党支部名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformation', @level2type=N'COLUMN',@level2name=N'Name'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'成立时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformation', @level2type=N'COLUMN',@level2name=N'StartDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'组成单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformation', @level2type=N'COLUMN',@level2name=N'Component'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党员人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformation', @level2type=N'COLUMN',@level2name=N'PartyerNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'员工人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformation', @level2type=N'COLUMN',@level2name=N'PersonNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党小组数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformation', @level2type=N'COLUMN',@level2name=N'PartyGroupNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年度受表彰情况' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformation', @level2type=N'COLUMN',@level2name=N'Commendation'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年度受处分情况' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformation', @level2type=N'COLUMN',@level2name=N'Punishment'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党支部基本情况表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformation'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_BasicInformationDetail](
|
||
[BasicInformationDetailId] [nvarchar](50) NOT NULL,
|
||
[BasicInformationId] [nvarchar](50) NULL,
|
||
[SortIndex] [int] NULL,
|
||
[Name] [nvarchar](50) NULL,
|
||
[BirthDate] [datetime] NULL,
|
||
[JoinPartyDate] [datetime] NULL,
|
||
[PartyPost] [nvarchar](50) NULL,
|
||
[AdministrationPost] [nvarchar](50) NULL,
|
||
[PartyPostJoinDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_BasicInformationDetail] PRIMARY KEY CLUSTERED
|
||
(
|
||
[BasicInformationDetailId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_BasicInformationDetail] WITH CHECK ADD CONSTRAINT [FK_Party_BasicInformationDetail_Party_BasicInformation] FOREIGN KEY([BasicInformationId])
|
||
REFERENCES [dbo].[Party_BasicInformation] ([BasicInformationId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_BasicInformationDetail] CHECK CONSTRAINT [FK_Party_BasicInformationDetail_Party_BasicInformation]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformationDetail', @level2type=N'COLUMN',@level2name=N'BasicInformationDetailId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'外键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformationDetail', @level2type=N'COLUMN',@level2name=N'BasicInformationId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'排序' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformationDetail', @level2type=N'COLUMN',@level2name=N'SortIndex'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformationDetail', @level2type=N'COLUMN',@level2name=N'Name'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出生年月' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformationDetail', @level2type=N'COLUMN',@level2name=N'BirthDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'入党时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformationDetail', @level2type=N'COLUMN',@level2name=N'JoinPartyDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党内职务' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformationDetail', @level2type=N'COLUMN',@level2name=N'PartyPost'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'行政职务' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformationDetail', @level2type=N'COLUMN',@level2name=N'AdministrationPost'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党内职务任职时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformationDetail', @level2type=N'COLUMN',@level2name=N'PartyPostJoinDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党支部基本情况明细表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_BasicInformationDetail'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_Partyer](
|
||
[PartyerId] [nvarchar](50) NOT NULL,
|
||
[Name] [nvarchar](50) NULL,
|
||
[Sex] [nvarchar](10) NULL,
|
||
[BirthDate] [datetime] NULL,
|
||
[Education] [nvarchar](50) NULL,
|
||
[Nation] [nvarchar](50) NULL,
|
||
[JoinPartyDate] [datetime] NULL,
|
||
[JoinPostDate] [datetime] NULL,
|
||
[Post] [nvarchar](50) NULL,
|
||
[Phone] [nvarchar](50) NULL,
|
||
[PartyRelationInDate] [datetime] NULL,
|
||
[PartyRelationOutDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_Partyer] PRIMARY KEY CLUSTERED
|
||
(
|
||
[PartyerId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_Partyer', @level2type=N'COLUMN',@level2name=N'PartyerId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_Partyer', @level2type=N'COLUMN',@level2name=N'Name'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'性别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_Partyer', @level2type=N'COLUMN',@level2name=N'Sex'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出生年月' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_Partyer', @level2type=N'COLUMN',@level2name=N'BirthDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'学历' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_Partyer', @level2type=N'COLUMN',@level2name=N'Education'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'入党时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_Partyer', @level2type=N'COLUMN',@level2name=N'JoinPartyDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'入职时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_Partyer', @level2type=N'COLUMN',@level2name=N'JoinPostDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'职务' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_Partyer', @level2type=N'COLUMN',@level2name=N'Post'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'联系方式' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_Partyer', @level2type=N'COLUMN',@level2name=N'Phone'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党组织关系转入时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_Partyer', @level2type=N'COLUMN',@level2name=N'PartyRelationInDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党组织关系转出时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_Partyer', @level2type=N'COLUMN',@level2name=N'PartyRelationOutDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党员名册表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_Partyer'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_CommentPartyer](
|
||
[CommentPartyerId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[ProjectId] [nvarchar](50) NULL,
|
||
[Partyers] [nvarchar](1000) NULL,
|
||
[Host] [nvarchar](50) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_CommentPartyer] PRIMARY KEY CLUSTERED
|
||
(
|
||
[CommentPartyerId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_CommentPartyer] WITH CHECK ADD CONSTRAINT [FK_Party_CommentPartyer_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_CommentPartyer] CHECK CONSTRAINT [FK_Party_CommentPartyer_Base_Project]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_CommentPartyer] WITH CHECK ADD CONSTRAINT [FK_Party_CommentPartyer_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_CommentPartyer] CHECK CONSTRAINT [FK_Party_CommentPartyer_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_CommentPartyer', @level2type=N'COLUMN',@level2name=N'CommentPartyerId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_CommentPartyer', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_CommentPartyer', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'被评议党员' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_CommentPartyer', @level2type=N'COLUMN',@level2name=N'Partyers'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主持人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_CommentPartyer', @level2type=N'COLUMN',@level2name=N'Host'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_CommentPartyer', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_CommentPartyer', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'民主评议党员表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_CommentPartyer'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_FocusLearn](
|
||
[FocusLearnId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[Quarter] [int] NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_FocusLearn] PRIMARY KEY CLUSTERED
|
||
(
|
||
[FocusLearnId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_FocusLearn] WITH CHECK ADD CONSTRAINT [FK_Party_FocusLearn_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_FocusLearn] CHECK CONSTRAINT [FK_Party_FocusLearn_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_FocusLearn', @level2type=N'COLUMN',@level2name=N'FocusLearnId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_FocusLearn', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'季度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_FocusLearn', @level2type=N'COLUMN',@level2name=N'Quarter'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_FocusLearn', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_FocusLearn', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'集中学习表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_FocusLearn'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_LastWorkSummary](
|
||
[LastWorkSummaryId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_LastWorkSummary] PRIMARY KEY CLUSTERED
|
||
(
|
||
[LastWorkSummaryId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_LastWorkSummary] WITH CHECK ADD CONSTRAINT [FK_Party_LastWorkSummary_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_LastWorkSummary] CHECK CONSTRAINT [FK_Party_LastWorkSummary_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_LastWorkSummary', @level2type=N'COLUMN',@level2name=N'LastWorkSummaryId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_LastWorkSummary', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_LastWorkSummary', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_LastWorkSummary', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上年度党建工作总结表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_LastWorkSummary'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_NewsPropagandaWork](
|
||
[NewsPropagandaWorkId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[NewsDate] [datetime] NULL,
|
||
[Author] [nvarchar](50) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_NewsPropagandaWork] PRIMARY KEY CLUSTERED
|
||
(
|
||
[NewsPropagandaWorkId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_NewsPropagandaWork] WITH CHECK ADD CONSTRAINT [FK_Party_NewsPropagandaWork_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_NewsPropagandaWork] CHECK CONSTRAINT [FK_Party_NewsPropagandaWork_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_NewsPropagandaWork', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_NewsPropagandaWork', @level2type=N'COLUMN',@level2name=N'NewsDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'作者' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_NewsPropagandaWork', @level2type=N'COLUMN',@level2name=N'Author'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_NewsPropagandaWork', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_NewsPropagandaWork', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'新闻宣传工作表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_NewsPropagandaWork'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_OrganizingLife](
|
||
[OrganizingLifeId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[Quarter] [int] NULL,
|
||
[Theme] [nvarchar](200) NULL,
|
||
[OrganizingLifeDate] [datetime] NULL,
|
||
[Partyers] [nvarchar](2000) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_OrganizingLife] PRIMARY KEY CLUSTERED
|
||
(
|
||
[OrganizingLifeId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_OrganizingLife] WITH CHECK ADD CONSTRAINT [FK_Party_OrganizingLife_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_OrganizingLife] CHECK CONSTRAINT [FK_Party_OrganizingLife_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_OrganizingLife', @level2type=N'COLUMN',@level2name=N'OrganizingLifeId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_OrganizingLife', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'季度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_OrganizingLife', @level2type=N'COLUMN',@level2name=N'Quarter'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主题' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_OrganizingLife', @level2type=N'COLUMN',@level2name=N'Theme'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_OrganizingLife', @level2type=N'COLUMN',@level2name=N'OrganizingLifeDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_OrganizingLife', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_OrganizingLife', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'组织生活会表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_OrganizingLife'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_PartyCommittee](
|
||
[PartyCommitteeId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[Month] [int] NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_PartyCommittee] PRIMARY KEY CLUSTERED
|
||
(
|
||
[PartyCommitteeId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyCommittee] WITH CHECK ADD CONSTRAINT [FK_Party_PartyCommittee_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyCommittee] CHECK CONSTRAINT [FK_Party_PartyCommittee_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyCommittee', @level2type=N'COLUMN',@level2name=N'PartyCommitteeId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyCommittee', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyCommittee', @level2type=N'COLUMN',@level2name=N'Month'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyCommittee', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyCommittee', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党支部委员会表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyCommittee'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_PartyCongress](
|
||
[PartyCongressId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[Quarter] [int] NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_PartyCongress] PRIMARY KEY CLUSTERED
|
||
(
|
||
[PartyCongressId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyCongress] WITH CHECK ADD CONSTRAINT [FK_Party_PartyCongress_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyCongress] CHECK CONSTRAINT [FK_Party_PartyCongress_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyCongress', @level2type=N'COLUMN',@level2name=N'PartyCongressId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'季度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyCongress', @level2type=N'COLUMN',@level2name=N'Quarter'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyCongress', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyCongress', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党支部党员大会表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyCongress'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_PartyHistoryStudy](
|
||
[PartyHistoryStudyId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[StudyDate] [datetime] NULL,
|
||
[Speaker] [nvarchar](50) NULL,
|
||
[Theme] [nvarchar](200) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_PartyHistoryStudy] PRIMARY KEY CLUSTERED
|
||
(
|
||
[PartyHistoryStudyId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyHistoryStudy] WITH CHECK ADD CONSTRAINT [FK_Party_PartyHistoryStudy_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyHistoryStudy] CHECK CONSTRAINT [FK_Party_PartyHistoryStudy_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyHistoryStudy', @level2type=N'COLUMN',@level2name=N'PartyHistoryStudyId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyHistoryStudy', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyHistoryStudy', @level2type=N'COLUMN',@level2name=N'StudyDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主讲人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyHistoryStudy', @level2type=N'COLUMN',@level2name=N'Speaker'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyHistoryStudy', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyHistoryStudy', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党史学习教育表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyHistoryStudy'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_PartyLecture](
|
||
[PartyLectureId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[Quarter] [int] NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_PartyLecture] PRIMARY KEY CLUSTERED
|
||
(
|
||
[PartyLectureId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyLecture] WITH CHECK ADD CONSTRAINT [FK_Party_PartyLecture_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyLecture] CHECK CONSTRAINT [FK_Party_PartyLecture_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyLecture', @level2type=N'COLUMN',@level2name=N'PartyLectureId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyLecture', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'季度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyLecture', @level2type=N'COLUMN',@level2name=N'Quarter'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyLecture', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyLecture', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党课表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyLecture'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_PartyMeeting](
|
||
[PartyMeetingId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[Month] [int] NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_PartyMeeting] PRIMARY KEY CLUSTERED
|
||
(
|
||
[PartyMeetingId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyMeeting] WITH CHECK ADD CONSTRAINT [FK_Party_PartyMeeting_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyMeeting] CHECK CONSTRAINT [FK_Party_PartyMeeting_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMeeting', @level2type=N'COLUMN',@level2name=N'PartyMeetingId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMeeting', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMeeting', @level2type=N'COLUMN',@level2name=N'Month'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMeeting', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMeeting', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'支部党小组会表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMeeting'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_PartyMoneyUse](
|
||
[PartyMoneyUseId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[UseDate] [datetime] NULL,
|
||
[Purpose] [nvarchar](200) NULL,
|
||
[Cost] [decimal](18, 2) NULL,
|
||
[Partyers] [nvarchar](500) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_PartyMoneyUse] PRIMARY KEY CLUSTERED
|
||
(
|
||
[PartyMoneyUseId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMoneyUse', @level2type=N'COLUMN',@level2name=N'PartyMoneyUseId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMoneyUse', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMoneyUse', @level2type=N'COLUMN',@level2name=N'UseDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'用途' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMoneyUse', @level2type=N'COLUMN',@level2name=N'Purpose'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'费用' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMoneyUse', @level2type=N'COLUMN',@level2name=N'Cost'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMoneyUse', @level2type=N'COLUMN',@level2name=N'Partyers'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMoneyUse', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMoneyUse', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党组织工作经费使用表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyMoneyUse'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_PartyPioneerDemonstration](
|
||
[PartyPioneerDemonstrationId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[PartyerId] [nvarchar](50) NULL,
|
||
[Introduce] [nvarchar](3000) NULL,
|
||
[Deeds] [nvarchar](3000) NULL,
|
||
[Summary] [nvarchar](3000) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_PartyPioneerDemonstration] PRIMARY KEY CLUSTERED
|
||
(
|
||
[PartyPioneerDemonstrationId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyPioneerDemonstration] WITH CHECK ADD CONSTRAINT [FK_Party_PartyPioneerDemonstration_Party_Partyer] FOREIGN KEY([PartyerId])
|
||
REFERENCES [dbo].[Party_Partyer] ([PartyerId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyPioneerDemonstration] CHECK CONSTRAINT [FK_Party_PartyPioneerDemonstration_Party_Partyer]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyPioneerDemonstration] WITH CHECK ADD CONSTRAINT [FK_Party_PartyPioneerDemonstration_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_PartyPioneerDemonstration] CHECK CONSTRAINT [FK_Party_PartyPioneerDemonstration_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyPioneerDemonstration', @level2type=N'COLUMN',@level2name=N'PartyPioneerDemonstrationId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyPioneerDemonstration', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党员' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyPioneerDemonstration', @level2type=N'COLUMN',@level2name=N'PartyerId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'介绍' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyPioneerDemonstration', @level2type=N'COLUMN',@level2name=N'Introduce'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'事迹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyPioneerDemonstration', @level2type=N'COLUMN',@level2name=N'Deeds'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'个人总结' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyPioneerDemonstration', @level2type=N'COLUMN',@level2name=N'Summary'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyPioneerDemonstration', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyPioneerDemonstration', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'党员先锋岗、示范岗表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_PartyPioneerDemonstration'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_ThemePartyDay](
|
||
[ThemePartyDayId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[ConveneDate] [datetime] NULL,
|
||
[Theme] [nvarchar](200) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_ThemePartyDay] PRIMARY KEY CLUSTERED
|
||
(
|
||
[ThemePartyDayId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_ThemePartyDay] WITH CHECK ADD CONSTRAINT [FK_Party_ThemePartyDay_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_ThemePartyDay] CHECK CONSTRAINT [FK_Party_ThemePartyDay_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_ThemePartyDay', @level2type=N'COLUMN',@level2name=N'ThemePartyDayId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_ThemePartyDay', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_ThemePartyDay', @level2type=N'COLUMN',@level2name=N'ConveneDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主题' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_ThemePartyDay', @level2type=N'COLUMN',@level2name=N'Theme'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_ThemePartyDay', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_ThemePartyDay', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主题党日活动表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_ThemePartyDay'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_TwoOneGoodSelection](
|
||
[TwoOneGoodSelectionId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[SelectionType] [char](1) NULL,
|
||
[PartyerId] [nvarchar](50) NULL,
|
||
[PartyBranch] [nvarchar](100) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_TwoOneGoodSelection] PRIMARY KEY CLUSTERED
|
||
(
|
||
[TwoOneGoodSelectionId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
SET ANSI_PADDING OFF
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_TwoOneGoodSelection] WITH CHECK ADD CONSTRAINT [FK_Party_TwoOneGoodSelection_Party_Partyer] FOREIGN KEY([PartyerId])
|
||
REFERENCES [dbo].[Party_Partyer] ([PartyerId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_TwoOneGoodSelection] CHECK CONSTRAINT [FK_Party_TwoOneGoodSelection_Party_Partyer]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_TwoOneGoodSelection] WITH CHECK ADD CONSTRAINT [FK_Party_TwoOneGoodSelection_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_TwoOneGoodSelection] CHECK CONSTRAINT [FK_Party_TwoOneGoodSelection_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_TwoOneGoodSelection', @level2type=N'COLUMN',@level2name=N'TwoOneGoodSelectionId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_TwoOneGoodSelection', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'类别(1-优秀党员,2-优秀党务工作者,3-先进基层党支部)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_TwoOneGoodSelection', @level2type=N'COLUMN',@level2name=N'SelectionType'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'基层党支部' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_TwoOneGoodSelection', @level2type=N'COLUMN',@level2name=N'PartyBranch'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_TwoOneGoodSelection', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_TwoOneGoodSelection', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'“两优一先”评选表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_TwoOneGoodSelection'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Party_WorkPlan](
|
||
[WorkPlanId] [nvarchar](50) NOT NULL,
|
||
[Year] [int] NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Party_WorkPlan] PRIMARY KEY CLUSTERED
|
||
(
|
||
[WorkPlanId] ASC
|
||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||
) ON [PRIMARY]
|
||
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_WorkPlan] WITH CHECK ADD CONSTRAINT [FK_Party_WorkPlan_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Party_WorkPlan] CHECK CONSTRAINT [FK_Party_WorkPlan_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_WorkPlan', @level2type=N'COLUMN',@level2name=N'WorkPlanId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_WorkPlan', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_WorkPlan', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_WorkPlan', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本年度党建工作计划表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_WorkPlan'
|
||
GO
|
||
|
||
|
||
alter table [dbo].[CQMS_Law_ConstructionStandardListProject] add IsChecked bit null
|
||
GO |