72 lines
3.4 KiB
MySQL
72 lines
3.4 KiB
MySQL
|
|
|||
|
|
|||
|
/****** 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'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' , @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'<EFBFBD>±<EFBFBD><EFBFBD><EFBFBD>' , @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'<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' , @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'<EFBFBD><EFBFBD><EFBFBD>ࣨ1-<2D><> <20><><EFBFBD><EFBFBD>2-<2D><> <20><><EFBFBD><EFBFBD>' , @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'<EFBFBD><EFBFBD><EFBFBD>ͱ<EFBFBD>־(1-<2D><>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD>,2-<2D><><EFBFBD><EFBFBD>)' , @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'<EFBFBD><EFBFBD><EFBFBD>ͽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>£<EFBFBD>' , @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'<EFBFBD>ۼƽ<EFBFBD><EFBFBD>ͽ<EFBFBD><EFBFBD><EFBFBD>' , @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'<EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>£<EFBFBD>' , @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'<EFBFBD>ۼƽ<EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD><EFBFBD>' , @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'<EFBFBD>±<EFBFBD><EFBFBD><EFBFBD>HSE<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_IncentiveSortB'
|
|||
|
GO
|
|||
|
|
|||
|
|