CREATE TABLE [dbo].[acc_commission_sharing_deduced]
(
[csd_csd_id] [int] NOT NULL,
[csd_transaction_id] [int] NOT NULL,
[csd_invoice_id] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[acc_commission_sharing_deduced] ADD CONSTRAINT [PK_acc_commission_sharing_deduced] PRIMARY KEY CLUSTERED  ([csd_csd_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[acc_commission_sharing_deduced] ADD CONSTRAINT [FK_acc_commission_sharing_deduced_acc_accounts] FOREIGN KEY ([csd_csd_id]) REFERENCES [dbo].[acc_accounts] ([a_account_id])
GO
ALTER TABLE [dbo].[acc_commission_sharing_deduced] ADD CONSTRAINT [FK_acc_commission_sharing_deduced_acc_transactions] FOREIGN KEY ([csd_transaction_id]) REFERENCES [dbo].[acc_transactions] ([atrn_transaction_id])
GO
