/*
 Navicat MySQL Data Transfer

 Source Server         : AIN prod
 Source Server Type    : MySQL
 Source Server Version : 50723
 Source Host           : 10.1.0.6:3306
 Source Schema         : production

 Target Server Type    : MySQL
 Target Server Version : 50723
 File Encoding         : 65001

 Date: 12/03/2019 14:32:22
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for travel_documents
-- ----------------------------
DROP TABLE IF EXISTS `travel_documents`;
CREATE TABLE `travel_documents`  (
  `travel_id` int(11) NOT NULL,
  `file_id` bigint(20) NOT NULL,
  PRIMARY KEY (`travel_id`, `file_id`) USING BTREE,
  INDEX `IDX_A46CB6F4ECAB15B3`(`travel_id`) USING BTREE,
  INDEX `IDX_A46CB6F493CB796C`(`file_id`) USING BTREE,
  CONSTRAINT `FK_A46CB6F493CB796C` FOREIGN KEY (`file_id`) REFERENCES `file` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
  CONSTRAINT `FK_A46CB6F4ECAB15B3` FOREIGN KEY (`travel_id`) REFERENCES `travel` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
