/****** Object: Table [dbo].[Manager_ManhoursSortB] Script Date: 2021/8/10 19:53:06 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Manager_ManhoursSortB]( [ManhoursSortId] [nvarchar](50) NOT NULL, [MonthReportId] [nvarchar](50) NULL, [UnitId] [nvarchar](50) NULL, [PersonTotal] [int] NULL, [ManhoursTotal] [int] NULL, [TotalManhoursTotal] [int] NULL, CONSTRAINT [PK_Manager_ManhoursSortB] PRIMARY KEY CLUSTERED ( [ManhoursSortId] 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_ManhoursSortB] WITH CHECK ADD CONSTRAINT [FK_Manager_ManhoursSortB_Base_Unit] FOREIGN KEY([UnitId]) REFERENCES [dbo].[Base_Unit] ([UnitId]) GO ALTER TABLE [dbo].[Manager_ManhoursSortB] CHECK CONSTRAINT [FK_Manager_ManhoursSortB_Base_Unit] GO ALTER TABLE [dbo].[Manager_ManhoursSortB] WITH CHECK ADD CONSTRAINT [FK_Manager_ManhoursSortB_Manager_MonthReport] FOREIGN KEY([MonthReportId]) REFERENCES [dbo].[Manager_MonthReportB] ([MonthReportId]) GO ALTER TABLE [dbo].[Manager_ManhoursSortB] CHECK CONSTRAINT [FK_Manager_ManhoursSortB_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_ManhoursSortB', @level2type=N'COLUMN',@level2name=N'ManhoursSortId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月报告' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_ManhoursSortB', @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_ManhoursSortB', @level2type=N'COLUMN',@level2name=N'UnitId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'员工总数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_ManhoursSortB', @level2type=N'COLUMN',@level2name=N'PersonTotal' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'完成人工时(当月)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_ManhoursSortB', @level2type=N'COLUMN',@level2name=N'ManhoursTotal' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月报告人工时分类表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_ManhoursSortB' GO