CREATE TABLE tx_facture_libre (id INT AUTO_INCREMENT NOT NULL, tx_rsv_libre_id INT DEFAULT NULL, tx_usr_id INT DEFAULT NULL, fct_is_sent TINYINT(1) DEFAULT NULL, INDEX IDX_75AA578B9F8E19D1 (tx_rsv_libre_id), INDEX IDX_75AA578B5CC5E754 (tx_usr_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
ALTER TABLE tx_facture_libre ADD CONSTRAINT FK_75AA578B9F8E19D1 FOREIGN KEY (tx_rsv_libre_id) REFERENCES tx_reservation_libre (id) ON DELETE CASCADE;
ALTER TABLE tx_facture_libre ADD CONSTRAINT FK_75AA578B5CC5E754 FOREIGN KEY (tx_usr_id) REFERENCES tx_user (id) ON DELETE CASCADE;
