[dbo].[RevenueGroupRateMatrixXYBasis]
CREATE TABLE [dbo].[RevenueGroupRateMatrixXYBasis]
(
[RevenueGroupRateMatrixXYBasisID] [int] NOT NULL IDENTITY(1, 1),
[BillingMajorItemFID] [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].[RevenueGroupRateMatrixXYBasis] ADD CONSTRAINT [PK_RevenueGroupRateMatrixXYBasis] PRIMARY KEY CLUSTERED ([RevenueGroupRateMatrixXYBasisID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueGroupRateMatrixXYBasis] ADD CONSTRAINT [IX_RevenueGroupRateMatrixXYBasis_BillingMajorItem] UNIQUE NONCLUSTERED ([BillingMajorItemFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueGroupRateMatrixXYBasis] ADD CONSTRAINT [FK_RevenueGroupRateMatrixXYBasis_BillingMajorItem] FOREIGN KEY ([BillingMajorItemFID]) REFERENCES [dbo].[BillingMajorItem] ([BMajPriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[RevenueGroupRateMatrixXYBasis] ADD CONSTRAINT [FK_RevenueGroupRateMatrixXYBasis_RateMatrix] FOREIGN KEY ([RateMatrixFID]) REFERENCES [dbo].[RateMatrix] ([RateMatrixID])
GO
GRANT SELECT ON [dbo].[RevenueGroupRateMatrixXYBasis] TO [MssExec]
GRANT INSERT ON [dbo].[RevenueGroupRateMatrixXYBasis] TO [MssExec]
GRANT DELETE ON [dbo].[RevenueGroupRateMatrixXYBasis] TO [MssExec]
GRANT UPDATE ON [dbo].[RevenueGroupRateMatrixXYBasis] TO [MssExec]
GO