xinjiang/DataBase/版本日志/已更新/TCC月报/Manager_MeetingSortB.sql

52 lines
2.3 KiB
Transact-SQL

/****** Object: Table [dbo].[Manager_MeetingSortB] Script Date: 2021/8/10 19:54:42 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Manager_MeetingSortB](
[MeetingSortId] [nvarchar](50) NOT NULL,
[MonthReportId] [nvarchar](50) NULL,
[MeetingType] [nvarchar](30) NULL,
[MeetingNumber] [int] NULL,
[TotalMeetingNum] [int] NULL,
[MeetingPersonNumber] [int] NULL,
[TotalMeetingPersonNum] [int] NULL,
CONSTRAINT [PK_Manager_MeetingSortB] PRIMARY KEY CLUSTERED
(
[MeetingSortId] 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].[Manager_MeetingSortB] WITH CHECK ADD CONSTRAINT [FK_Manager_MeetingSortB_Manager_MonthReport] FOREIGN KEY([MonthReportId])
REFERENCES [dbo].[Manager_MonthReportB] ([MonthReportId])
GO
ALTER TABLE [dbo].[Manager_MeetingSortB] CHECK CONSTRAINT [FK_Manager_MeetingSortB_Manager_MonthReport]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会议类型' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_MeetingSortB', @level2type=N'COLUMN',@level2name=N'MeetingType'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会议次数(当月)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_MeetingSortB', @level2type=N'COLUMN',@level2name=N'MeetingNumber'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总会议次数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_MeetingSortB', @level2type=N'COLUMN',@level2name=N'TotalMeetingNum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'参加人数(当月)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_MeetingSortB', @level2type=N'COLUMN',@level2name=N'MeetingPersonNumber'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总参加人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_MeetingSortB', @level2type=N'COLUMN',@level2name=N'TotalMeetingPersonNum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月报告HSE会议情况表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_MeetingSortB'
GO