
[dbo].[StatementChargeBack]
CREATE TABLE [dbo].[StatementChargeBack]
(
[SCBPriKey] [int] NOT NULL IDENTITY(1, 1),
[SDPriKey] [int] NOT NULL,
[NewCustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[NewCustomerARAccount] [varchar] (66) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ChargeBackBalance] [money] NULL,
[SDDPriKey] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StatementChargeBack] ADD CONSTRAINT [PK_StatementChargeBack] PRIMARY KEY CLUSTERED ([SCBPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StatementChargeBack] ON [dbo].[StatementChargeBack] ([SDPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StatementChargeBack] ADD CONSTRAINT [FK_StatementChargeBack_StatementDetailDist] FOREIGN KEY ([SDDPriKey]) REFERENCES [dbo].[StatementDetailDist] ([SDDPriKey])
GO
ALTER TABLE [dbo].[StatementChargeBack] ADD CONSTRAINT [FK_StatementChargeBack_StatementDetail] FOREIGN KEY ([SDPriKey]) REFERENCES [dbo].[StatementDetail] ([SDPriKey])
GO
GRANT SELECT ON [dbo].[StatementChargeBack] TO [MssExec]
GRANT INSERT ON [dbo].[StatementChargeBack] TO [MssExec]
GRANT DELETE ON [dbo].[StatementChargeBack] TO [MssExec]
GRANT UPDATE ON [dbo].[StatementChargeBack] TO [MssExec]
GO