-- MySQL Script generated by MySQL Workbench -- 06/11/14 17:06:50 -- Model: New Model Version: 1.0 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema mydb -- ----------------------------------------------------- -- ----------------------------------------------------- -- Table `exceptNodeLinkNodeNodeTypeT` -- ----------------------------------------------------- DROP TABLE IF EXISTS `exceptNodeLinkNodeNodeTypeT` ; CREATE TABLE IF NOT EXISTS `exceptNodeLinkNodeNodeTypeT` ( `srcNodeId` INT UNSIGNED NOT NULL, `dstNodeTypeId` INT UNSIGNED NOT NULL, `comment` VARCHAR(255) NOT NULL, `added` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`srcNodeId`, `dstNodeTypeId`), UNIQUE INDEX `dstnodetypeid_srcnodeid_idx` (`dstNodeTypeId` ASC, `srcNodeId` ASC), CONSTRAINT `fk_exceptNodeLinkNodeNodeTypeT_nodeT1` FOREIGN KEY (`srcNodeId`) REFERENCES `nodeT` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `fk_exceptNodeLinkNodeNodeTypeT_nodeTypeT1` FOREIGN KEY (`dstNodeTypeId`) REFERENCES `nodeTypeT` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION) ENGINE = InnoDB; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; -- ----------------------------------------------------- -- Data for table `exceptNodeLinkNodeNodeTypeT` -- ----------------------------------------------------- START TRANSACTION; INSERT INTO `exceptNodeLinkNodeNodeTypeT` (`srcNodeId`, `dstNodeTypeId`, `comment`, `added`) VALUES (6744, 2, 'exception for Find Route', NULL); COMMIT;