CREATE TABLE tx_facture (id INT AUTO_INCREMENT NOT NULL, tx_rsv_id INT DEFAULT NULL, tx_usr_id INT DEFAULT NULL, fct_is_sent TINYINT(1) DEFAULT NULL, INDEX IDX_B8BF765DCEA240BB (tx_rsv_id), INDEX IDX_B8BF765D5CC5E754 (tx_usr_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
ALTER TABLE tx_facture ADD CONSTRAINT FK_B8BF765DCEA240BB FOREIGN KEY (tx_rsv_id) REFERENCES tx_reservation (id) ON DELETE CASCADE;
ALTER TABLE tx_facture ADD CONSTRAINT FK_B8BF765D5CC5E754 FOREIGN KEY (tx_usr_id) REFERENCES tx_user (id) ON DELETE CASCADE;
