[dbo].[QuoteDetailRateMatrixXYBasis]
CREATE TABLE [dbo].[QuoteDetailRateMatrixXYBasis]
(
[QuoteDetailRateMatrixXYBasisID] [int] NOT NULL IDENTITY(1, 1),
[QuoteDetailFID] [int] NOT NULL,
[RateMatrixFID] [int] NOT NULL,
[XRangeValue] [decimal] (12, 3) NULL,
[YRangeValue] [decimal] (12, 3) NULL,
[XBreakPoint] [decimal] (12, 3) NULL,
[YBreakPoint] [decimal] (12, 3) NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteDetailRateMatrixXYBasis] ADD CONSTRAINT [PK_QuoteDetailRateMatrixXYBasis] PRIMARY KEY CLUSTERED ([QuoteDetailRateMatrixXYBasisID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteDetailRateMatrixXYBasis] ADD CONSTRAINT [IX_QuoteDetailRateMatrixXYBasis_QuoteDetail] UNIQUE NONCLUSTERED ([QuoteDetailFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteDetailRateMatrixXYBasis] ADD CONSTRAINT [FK_QuoteDetailRateMatrixXYBasis_QuoteDetail] FOREIGN KEY ([QuoteDetailFID]) REFERENCES [dbo].[QuoteDetail] ([QuoteDetailID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[QuoteDetailRateMatrixXYBasis] ADD CONSTRAINT [FK_QuoteDetailRateMatrixXYBasis_RateMatrix] FOREIGN KEY ([RateMatrixFID]) REFERENCES [dbo].[RateMatrix] ([RateMatrixID])
GO
GRANT SELECT ON [dbo].[QuoteDetailRateMatrixXYBasis] TO [MssExec]
GRANT INSERT ON [dbo].[QuoteDetailRateMatrixXYBasis] TO [MssExec]
GRANT DELETE ON [dbo].[QuoteDetailRateMatrixXYBasis] TO [MssExec]
GRANT UPDATE ON [dbo].[QuoteDetailRateMatrixXYBasis] TO [MssExec]
GO