CREATE TABLE [dbo].[acc_trn_bordereaux_companies]
(
[trnbcie_bordereau_id] [int] NOT NULL,
[trnbcie_company_id] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[acc_trn_bordereaux_companies] ADD CONSTRAINT [PK_acc_trn_bordereaux_companies] PRIMARY KEY CLUSTERED  ([trnbcie_bordereau_id], [trnbcie_company_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[acc_trn_bordereaux_companies] ADD CONSTRAINT [FK_acc_trn_bordereaux_companies_acc_trn_bordereaux] FOREIGN KEY ([trnbcie_bordereau_id]) REFERENCES [dbo].[acc_trn_bordereaux] ([trnb_bordereau_id])
GO
ALTER TABLE [dbo].[acc_trn_bordereaux_companies] ADD CONSTRAINT [FK_acc_trn_bordereaux_companies_act_cies] FOREIGN KEY ([trnbcie_company_id]) REFERENCES [dbo].[act_cies] ([cie_actor_id])
GO
