112 lines
6.0 KiB
Transact-SQL
112 lines
6.0 KiB
Transact-SQL
insert into [dbo].[Sys_Const]
|
|
values(NEWID(),'Menu_Party','智慧党建',8,'MenuType_S',null)
|
|
GO
|
|
|
|
|
|
CREATE TABLE [dbo].[Party_DoingThingsForMasses](
|
|
[DoingThingsForMassesId] [nvarchar](50) NOT NULL,
|
|
[Year] [int] NULL,
|
|
[Name] [nvarchar](50) NULL,
|
|
[DifficultyDescription] [nvarchar](500) NULL,
|
|
[DifficultyType] [nvarchar](50) NULL,
|
|
[HelpProgram] [nvarchar](500) NULL,
|
|
[HelpTime] [nvarchar](50) NULL,
|
|
[FollowUp] [nvarchar](200) NULL,
|
|
[CompileMan] [nvarchar](50) NULL,
|
|
[CompileDate] [datetime] NULL,
|
|
CONSTRAINT [PK_Party_DoingThingsForMasses] PRIMARY KEY CLUSTERED
|
|
(
|
|
[DoingThingsForMassesId] 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_DoingThingsForMasses] WITH CHECK ADD CONSTRAINT [FK_Party_DoingThingsForMasses_Sys_User] FOREIGN KEY([CompileMan])
|
|
REFERENCES [dbo].[Sys_User] ([UserId])
|
|
GO
|
|
|
|
ALTER TABLE [dbo].[Party_DoingThingsForMasses] CHECK CONSTRAINT [FK_Party_DoingThingsForMasses_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_DoingThingsForMasses', @level2type=N'COLUMN',@level2name=N'DoingThingsForMassesId'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_DoingThingsForMasses', @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_DoingThingsForMasses', @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_DoingThingsForMasses', @level2type=N'COLUMN',@level2name=N'DifficultyType'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'支部帮扶方案' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_DoingThingsForMasses', @level2type=N'COLUMN',@level2name=N'HelpProgram'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'帮扶时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_DoingThingsForMasses', @level2type=N'COLUMN',@level2name=N'HelpTime'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'跟踪情况' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_DoingThingsForMasses', @level2type=N'COLUMN',@level2name=N'FollowUp'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_DoingThingsForMasses', @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_DoingThingsForMasses', @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_DoingThingsForMasses'
|
|
GO
|
|
|
|
|
|
|
|
CREATE TABLE [dbo].[Party_EmployeeConversationRecord](
|
|
[EmployeeConversationRecordId] [nvarchar](50) NOT NULL,
|
|
[Year] [int] NULL,
|
|
[Speaker] [nvarchar](50) NULL,
|
|
[Interviewee] [nvarchar](50) NULL,
|
|
[ConversationDate] [datetime] NULL,
|
|
[CompileMan] [nvarchar](50) NULL,
|
|
[CompileDate] [datetime] NULL,
|
|
CONSTRAINT [PK_Party_EmployeeConversationRecord] PRIMARY KEY CLUSTERED
|
|
(
|
|
[EmployeeConversationRecordId] 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_EmployeeConversationRecord] WITH CHECK ADD CONSTRAINT [FK_Party_EmployeeConversationRecord_Sys_User] FOREIGN KEY([CompileMan])
|
|
REFERENCES [dbo].[Sys_User] ([UserId])
|
|
GO
|
|
|
|
ALTER TABLE [dbo].[Party_EmployeeConversationRecord] CHECK CONSTRAINT [FK_Party_EmployeeConversationRecord_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_EmployeeConversationRecord', @level2type=N'COLUMN',@level2name=N'EmployeeConversationRecordId'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_EmployeeConversationRecord', @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_EmployeeConversationRecord', @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_EmployeeConversationRecord', @level2type=N'COLUMN',@level2name=N'Interviewee'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'谈话时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_EmployeeConversationRecord', @level2type=N'COLUMN',@level2name=N'ConversationDate'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Party_EmployeeConversationRecord', @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_EmployeeConversationRecord', @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_EmployeeConversationRecord'
|
|
GO
|
|
|
|
|