CREATE TABLE [dbo].[acc_mpay_bordereaux_banks]
(
[mpaybb_bordereau_id] [int] NOT NULL,
[mpaybb_bank_id] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[acc_mpay_bordereaux_banks] ADD CONSTRAINT [PK_acc_mpay_bordereaux_banks] PRIMARY KEY CLUSTERED  ([mpaybb_bordereau_id], [mpaybb_bank_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[acc_mpay_bordereaux_banks] ADD CONSTRAINT [FK_acc_mpay_bordereaux_banks_acc_mpay_bordereaux] FOREIGN KEY ([mpaybb_bordereau_id]) REFERENCES [dbo].[acc_mpay_bordereaux] ([mpayb_bordereau_id])
GO
ALTER TABLE [dbo].[acc_mpay_bordereaux_banks] ADD CONSTRAINT [FK_acc_mpay_bordereaux_banks_act_banks] FOREIGN KEY ([mpaybb_bank_id]) REFERENCES [dbo].[act_banks] ([bk_actor_id])
GO
