[dbo].[RateMatrixXYBasis]
CREATE TABLE [dbo].[RateMatrixXYBasis]
(
[RateMatrixXYBasisID] [int] NOT NULL IDENTITY(1, 1),
[BillingMinorItemFID] [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].[RateMatrixXYBasis] ADD CONSTRAINT [PK_RateMatrixXYBasis] PRIMARY KEY CLUSTERED ([RateMatrixXYBasisID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RateMatrixXYBasis] ADD CONSTRAINT [IX_RateMatrixXYBasis_BillingMinorItem] UNIQUE NONCLUSTERED ([BillingMinorItemFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RateMatrixXYBasis] ADD CONSTRAINT [FK_RateMatrixXYBasis_BillingMinorItem] FOREIGN KEY ([BillingMinorItemFID]) REFERENCES [dbo].[BillingMinorItem] ([BMinPriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[RateMatrixXYBasis] ADD CONSTRAINT [FK_RateMatrixXYBasis_RateMatrix] FOREIGN KEY ([RateMatrixFID]) REFERENCES [dbo].[RateMatrix] ([RateMatrixID])
GO
GRANT SELECT ON [dbo].[RateMatrixXYBasis] TO [MssExec]
GRANT INSERT ON [dbo].[RateMatrixXYBasis] TO [MssExec]
GRANT DELETE ON [dbo].[RateMatrixXYBasis] TO [MssExec]
GRANT UPDATE ON [dbo].[RateMatrixXYBasis] TO [MssExec]
GO