/****** Object: Table [dbo].[Manager_IncentiveSortB] Script Date: 2021/8/10 20:02:13 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING OFF GO CREATE TABLE [dbo].[Manager_IncentiveSortB]( [IncentiveSortId] [nvarchar](50) NOT NULL, [MonthReportId] [nvarchar](50) NULL, [IncentiveType] [nvarchar](30) NULL, [BigType] [char](1) NULL, [TypeFlag] [char](1) NULL, [IncentiveMoney] [money] NULL, [TotalIncentiveMoney] [money] NULL, [IncentiveNumber] [int] NULL, [TotalIncentiveNumber] [int] NULL, CONSTRAINT [PK_Manager_IncentiveSortB] PRIMARY KEY CLUSTERED ( [IncentiveSortId] 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].[Manager_IncentiveSortB] WITH CHECK ADD CONSTRAINT [FK_Manager_IncentiveSortB_Manager_MonthReport] FOREIGN KEY([MonthReportId]) REFERENCES [dbo].[Manager_MonthReportB] ([MonthReportId]) GO ALTER TABLE [dbo].[Manager_IncentiveSortB] CHECK CONSTRAINT [FK_Manager_IncentiveSortB_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_IncentiveSortB', @level2type=N'COLUMN',@level2name=N'IncentiveSortId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月报告' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_IncentiveSortB', @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_IncentiveSortB', @level2type=N'COLUMN',@level2name=N'IncentiveType' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'大类(1-奖 励,2-处 罚)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_IncentiveSortB', @level2type=N'COLUMN',@level2name=N'BigType' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'类型标志(1-对应金额,2-次数)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_IncentiveSortB', @level2type=N'COLUMN',@level2name=N'TypeFlag' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'奖惩金额(当月)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_IncentiveSortB', @level2type=N'COLUMN',@level2name=N'IncentiveMoney' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'累计奖惩金额' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_IncentiveSortB', @level2type=N'COLUMN',@level2name=N'TotalIncentiveMoney' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'奖惩次数(当月)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_IncentiveSortB', @level2type=N'COLUMN',@level2name=N'IncentiveNumber' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'累计奖惩次数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_IncentiveSortB', @level2type=N'COLUMN',@level2name=N'TotalIncentiveNumber' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月报告HSE奖惩情况表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_IncentiveSortB' GO