
[dbo].[QuoteGroupRateMatrixXYBasis]
CREATE TABLE [dbo].[QuoteGroupRateMatrixXYBasis]
(
[QuoteGroupRateMatrixXYBasisID] [int] NOT NULL IDENTITY(1, 1),
[QuoteGroupFID] [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].[QuoteGroupRateMatrixXYBasis] ADD CONSTRAINT [PK_QuoteGroupRateMatrixXYBasis] PRIMARY KEY CLUSTERED ([QuoteGroupRateMatrixXYBasisID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteGroupRateMatrixXYBasis] ADD CONSTRAINT [IX_QuoteGroupRateMatrixXYBasis_QuoteGroup] UNIQUE NONCLUSTERED ([QuoteGroupFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteGroupRateMatrixXYBasis] ADD CONSTRAINT [FK_QuoteGroupRateMatrixXYBasis_QuoteGroup] FOREIGN KEY ([QuoteGroupFID]) REFERENCES [dbo].[QuoteGroup] ([QuoteGroupID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[QuoteGroupRateMatrixXYBasis] ADD CONSTRAINT [FK_QuoteGroupRateMatrixXYBasis_RateMatrix] FOREIGN KEY ([RateMatrixFID]) REFERENCES [dbo].[RateMatrix] ([RateMatrixID])
GO
GRANT SELECT ON [dbo].[QuoteGroupRateMatrixXYBasis] TO [MssExec]
GRANT INSERT ON [dbo].[QuoteGroupRateMatrixXYBasis] TO [MssExec]
GRANT DELETE ON [dbo].[QuoteGroupRateMatrixXYBasis] TO [MssExec]
GRANT UPDATE ON [dbo].[QuoteGroupRateMatrixXYBasis] TO [MssExec]
GO