[dbo].[BillingMinorIncludedReduction]
CREATE TABLE [dbo].[BillingMinorIncludedReduction]
(
[BillingMinorIncludedReductionID] [int] NOT NULL IDENTITY(1, 1),
[BillingMinorReductionFID] [int] NOT NULL,
[OtherMinorReductionFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BillingMinorIncludedReduction] ADD CONSTRAINT [PK_BillingMinorIncludedReduction] PRIMARY KEY NONCLUSTERED ([BillingMinorIncludedReductionID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BillingMinorIncludedReduction] ADD CONSTRAINT [IX_BillingMinorIncludedReduction_BillingMinorReductionFID] UNIQUE CLUSTERED ([BillingMinorReductionFID], [OtherMinorReductionFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BillingMinorIncludedReduction] ADD CONSTRAINT [FK_BillingMinorIncludedReduction_BillingMinorReduction] FOREIGN KEY ([BillingMinorReductionFID]) REFERENCES [dbo].[BillingMinorReduction] ([BillingMinorReductionID])
GO
ALTER TABLE [dbo].[BillingMinorIncludedReduction] ADD CONSTRAINT [FK_ReductionBasisDeduction_OtherMinorReduction] FOREIGN KEY ([OtherMinorReductionFID]) REFERENCES [dbo].[BillingMinorReduction] ([BillingMinorReductionID])
GO
GRANT SELECT ON [dbo].[BillingMinorIncludedReduction] TO [MssExec]
GRANT INSERT ON [dbo].[BillingMinorIncludedReduction] TO [MssExec]
GRANT DELETE ON [dbo].[BillingMinorIncludedReduction] TO [MssExec]
GRANT UPDATE ON [dbo].[BillingMinorIncludedReduction] TO [MssExec]
GO