CREATE TABLE tx_trajet_zone (id INT AUTO_INCREMENT NOT NULL, tx_zone_id_depart INT DEFAULT NULL, tx_zone_id_arrivee INT DEFAULT NULL, trj_name VARCHAR(100) DEFAULT NULL, trj_distance DOUBLE PRECISION DEFAULT NULL, trj_desc LONGTEXT DEFAULT NULL, INDEX IDX_48C519D9CA1337AF (tx_zone_id_depart), INDEX IDX_48C519D9E363AD3 (tx_zone_id_arrivee), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
ALTER TABLE tx_trajet_zone ADD CONSTRAINT FK_48C519D9CA1337AF FOREIGN KEY (tx_zone_id_depart) REFERENCES tx_zone (id) ON DELETE CASCADE;
ALTER TABLE tx_trajet_zone ADD CONSTRAINT FK_48C519D9E363AD3 FOREIGN KEY (tx_zone_id_arrivee) REFERENCES tx_zone (id) ON DELETE CASCADE;
