/*
 Navicat Premium Data Transfer

 Source Server         : local-mysql
 Source Server Type    : MySQL
 Source Server Version : 50724
 Source Host           : localhost:3306
 Source Schema         : aroad

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

 Date: 25/04/2019 08:45:15
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for road_condition_event
-- ----------------------------
DROP TABLE IF EXISTS `road_condition_event`;
CREATE TABLE `road_condition_event`
(
    `id`            int(11)                                                       NOT NULL AUTO_INCREMENT,
    `road_code`     varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NULL DEFAULT NULL COMMENT '路线编码',
    `road_name`     varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NULL DEFAULT NULL COMMENT '路线名称',
    `startM`        varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NULL DEFAULT NULL COMMENT '开始桩号',
    `endM`          varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NULL DEFAULT NULL COMMENT '结束桩号',
    `event_type`    varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NULL DEFAULT NULL COMMENT '事件类型',
    `event_title`   varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NULL DEFAULT NULL COMMENT '事件标题',
    `event_content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '事件详情',
    `influence`     varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NULL DEFAULT NULL COMMENT '影响程度',
    `cars_length`   varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci   NULL DEFAULT NULL COMMENT '压车长度',
    `solution`      varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '绕行方案',
    `start_time`    datetime(0)                                                   NULL DEFAULT NULL COMMENT '发布时间',
    `start_unit`    varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NULL DEFAULT NULL COMMENT '发布单位',
    `start_person`  varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NULL DEFAULT NULL COMMENT '发布人',
    `pre_end_time`  datetime(0)                                                   NULL DEFAULT NULL COMMENT '预撤时间',
    `end_time`      datetime(0)                                                   NULL DEFAULT NULL COMMENT '撤销时间',
    `end_unit`      varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NULL DEFAULT NULL COMMENT '撤销单位',
    `end_reason`    varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '撤销原因',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB
  AUTO_INCREMENT = 11
  CHARACTER SET = utf8mb4
  COLLATE = utf8mb4_general_ci COMMENT = '路况事件管理'
  ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;


INSERT INTO `aroad`.`sys_menu`(`menu_id`, `name`, `permission`, `path`, `parent_id`, `icon`, `component`, `sort`,
                               `keep_alive`, `type`, `create_time`, `update_time`, `del_flag`)
VALUES (70000, '路况管理', NULL, '/roadcondition', -1, NULL, NULL, 7, '0', '0', '2019-04-23 11:16:58',
        '2019-04-23 11:17:22', '0');
INSERT INTO `aroad`.`sys_menu`(`menu_id`, `name`, `permission`, `path`, `parent_id`, `icon`, `component`, `sort`,
                               `keep_alive`, `type`, `create_time`, `update_time`, `del_flag`)
VALUES (71000, '路况事件统计', NULL, '/roadConditionShow', 70000, NULL, 'views/roadcondition/roadConditionShow/index', 1, '0',
        '0', '2019-04-23 11:19:38', NULL, '0');
INSERT INTO `aroad`.`sys_menu`(`menu_id`, `name`, `permission`, `path`, `parent_id`, `icon`, `component`, `sort`,
                               `keep_alive`, `type`, `create_time`, `update_time`, `del_flag`)
VALUES (72000, '路况事件查询', NULL, '/roadConditionManage', 70000, NULL, 'views/roadcondition/roadConditionManage/index', 2,
        '0', '0', '2019-04-24 17:18:24', NULL, '0');
