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

58 lines
2.7 KiB
Transact-SQL

/****** Object: Table [dbo].[Manager_TrainSortB] Script Date: 2021/8/10 19:56:38 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Manager_TrainSortB](
[TrainSortId] [nvarchar](50) NOT NULL,
[MonthReportId] [nvarchar](50) NULL,
[TrainType] [nvarchar](30) NULL,
[TrainNumber] [int] NULL,
[TotalTrainNum] [int] NULL,
[TrainPersonNumber] [int] NULL,
[TotalTrainPersonNum] [int] NULL,
CONSTRAINT [PK_Manager_TrainSortB] PRIMARY KEY CLUSTERED
(
[TrainSortId] 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_TrainSortB] WITH CHECK ADD CONSTRAINT [FK_Manager_TrainSortB_Manager_MonthReport] FOREIGN KEY([MonthReportId])
REFERENCES [dbo].[Manager_MonthReportB] ([MonthReportId])
GO
ALTER TABLE [dbo].[Manager_TrainSortB] CHECK CONSTRAINT [FK_Manager_TrainSortB_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_TrainSortB', @level2type=N'COLUMN',@level2name=N'TrainSortId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月报告' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_TrainSortB', @level2type=N'COLUMN',@level2name=N'MonthReportId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'培训类型' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_TrainSortB', @level2type=N'COLUMN',@level2name=N'TrainType'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'培训次数(当月)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_TrainSortB', @level2type=N'COLUMN',@level2name=N'TrainNumber'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总培训次数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_TrainSortB', @level2type=N'COLUMN',@level2name=N'TotalTrainNum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'培训人数(当月)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_TrainSortB', @level2type=N'COLUMN',@level2name=N'TrainPersonNumber'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总培训人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_TrainSortB', @level2type=N'COLUMN',@level2name=N'TotalTrainPersonNum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月报告HSE培训情况表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_TrainSortB'
GO