From 65a9277e3b0b532ee05e6f7df7ef60087281b4bc Mon Sep 17 00:00:00 2001 From: changhongkai Date: Thu, 5 Aug 2021 14:54:01 +0800 Subject: [PATCH] =?UTF-8?q?mysql=20schema=E5=A2=9E=E5=8A=A0=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/ferry.sql | 202 ++++++++++++++++++++++++----------------------- 1 file changed, 102 insertions(+), 100 deletions(-) diff --git a/config/ferry.sql b/config/ferry.sql index bea4a79..82619de 100644 --- a/config/ferry.sql +++ b/config/ferry.sql @@ -3,22 +3,22 @@ Source Server : localhost Source Server Type : MySQL - Source Server Version : 50729 - Source Host : localhost:3306 - Source Schema : ferry + Source Server Version : 80023 + Source Host : localhost + Source Database : ferry Target Server Type : MySQL - Target Server Version : 50729 - File Encoding : 65001 + Target Server Version : 80023 + File Encoding : utf-8 - Date: 05/09/2020 16:42:32 + Date: 08/05/2021 15:07:42 PM */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- --- Table structure for casbin_rule +-- Table structure for `casbin_rule` -- ---------------------------- DROP TABLE IF EXISTS `casbin_rule`; CREATE TABLE `casbin_rule` ( @@ -29,62 +29,64 @@ CREATE TABLE `casbin_rule` ( `v3` varchar(100) DEFAULT NULL, `v4` varchar(100) DEFAULT NULL, `v5` varchar(100) DEFAULT NULL, - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `delete_time` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_casbin_rule_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=794 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for p_process_classify +-- Table structure for `p_process_classify` -- ---------------------------- DROP TABLE IF EXISTS `p_process_classify`; CREATE TABLE `p_process_classify` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `delete_time` timestamp NULL DEFAULT NULL, `name` varchar(128) DEFAULT NULL, - `creator` int(11) DEFAULT NULL, + `creator` int DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_p_process_classify_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for p_process_info +-- Table structure for `p_process_info` -- ---------------------------- DROP TABLE IF EXISTS `p_process_info`; CREATE TABLE `p_process_info` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `delete_time` timestamp NULL DEFAULT NULL, `name` varchar(128) DEFAULT NULL, + `icon` varchar(128) DEFAULT NULL, `structure` json DEFAULT NULL, - `classify` int(11) DEFAULT NULL, + `classify` int DEFAULT NULL, `tpls` json DEFAULT NULL, `task` json DEFAULT NULL, - `submit_count` int(11) DEFAULT '0', - `creator` int(11) DEFAULT NULL, + `submit_count` int DEFAULT '0', + `creator` int DEFAULT NULL, `notice` json DEFAULT NULL, + `remarks` varchar(1024) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_p_process_info_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for p_task_history +-- Table structure for `p_task_history` -- ---------------------------- DROP TABLE IF EXISTS `p_task_history`; CREATE TABLE `p_task_history` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `delete_time` timestamp NULL DEFAULT NULL, - `task` int(11) DEFAULT NULL, + `task` int DEFAULT NULL, `name` varchar(256) DEFAULT NULL, - `task_type` int(11) DEFAULT NULL, + `task_type` int DEFAULT NULL, `execution_time` varchar(128) DEFAULT NULL, `result` longtext, PRIMARY KEY (`id`), @@ -92,118 +94,118 @@ CREATE TABLE `p_task_history` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for p_task_info +-- Table structure for `p_task_info` -- ---------------------------- DROP TABLE IF EXISTS `p_task_info`; CREATE TABLE `p_task_info` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `delete_time` timestamp NULL DEFAULT NULL, `name` varchar(256) DEFAULT NULL, `task_type` varchar(45) DEFAULT NULL, `content` longtext, - `creator` int(11) DEFAULT NULL, + `creator` int DEFAULT NULL, `remarks` longtext, PRIMARY KEY (`id`), KEY `idx_p_task_info_delete_time` (`delete_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for p_tpl_info +-- Table structure for `p_tpl_info` -- ---------------------------- DROP TABLE IF EXISTS `p_tpl_info`; CREATE TABLE `p_tpl_info` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `delete_time` timestamp NULL DEFAULT NULL, `name` varchar(128) DEFAULT NULL, `form_structure` json DEFAULT NULL, - `creator` int(11) DEFAULT NULL, + `creator` int DEFAULT NULL, `remarks` longtext, PRIMARY KEY (`id`), KEY `idx_p_tpl_info_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for p_work_order_circulation_history +-- Table structure for `p_work_order_circulation_history` -- ---------------------------- DROP TABLE IF EXISTS `p_work_order_circulation_history`; CREATE TABLE `p_work_order_circulation_history` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `delete_time` timestamp NULL DEFAULT NULL, `title` varchar(128) DEFAULT NULL, - `work_order` int(11) DEFAULT NULL, + `work_order` int DEFAULT NULL, `state` varchar(128) DEFAULT NULL, `source` varchar(128) DEFAULT NULL, `target` varchar(128) DEFAULT NULL, `circulation` varchar(128) DEFAULT NULL, + `status` int DEFAULT NULL, `processor` varchar(45) DEFAULT NULL, - `processor_id` int(11) DEFAULT NULL, - `cost_duration` varchar(128) DEFAULT NULL, + `processor_id` int DEFAULT NULL, + `cost_duration` int DEFAULT NULL, `remarks` longtext, PRIMARY KEY (`id`), KEY `idx_p_work_order_circulation_history_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for p_work_order_info +-- Table structure for `p_work_order_info` -- ---------------------------- DROP TABLE IF EXISTS `p_work_order_info`; CREATE TABLE `p_work_order_info` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `delete_time` timestamp NULL DEFAULT NULL, `title` varchar(128) DEFAULT NULL, - `priority` int(11) DEFAULT NULL, - `process` int(11) DEFAULT NULL, - `classify` int(11) DEFAULT NULL, - `is_end` int(11) DEFAULT '0', - `is_denied` int(11) DEFAULT '0', + `priority` int DEFAULT NULL, + `process` int DEFAULT NULL, + `classify` int DEFAULT NULL, + `is_end` int DEFAULT '0', + `is_denied` int DEFAULT '0', `state` json DEFAULT NULL, `related_person` json DEFAULT NULL, - `creator` int(11) DEFAULT NULL, - `urge_count` int(11) DEFAULT '0', - `urge_last_time` int(11) DEFAULT '0', + `creator` int DEFAULT NULL, + `urge_count` int DEFAULT '0', + `urge_last_time` int DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_p_work_order_info_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for p_work_order_tpl_data +-- Table structure for `p_work_order_tpl_data` -- ---------------------------- DROP TABLE IF EXISTS `p_work_order_tpl_data`; CREATE TABLE `p_work_order_tpl_data` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `delete_time` timestamp NULL DEFAULT NULL, - `work_order` int(11) DEFAULT NULL, + `work_order` int DEFAULT NULL, `form_structure` json DEFAULT NULL, `form_data` json DEFAULT NULL, - `tpl` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_p_work_order_tpl_data_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for sys_dept +-- Table structure for `sys_dept` -- ---------------------------- DROP TABLE IF EXISTS `sys_dept`; CREATE TABLE `sys_dept` ( - `dept_id` int(11) NOT NULL AUTO_INCREMENT, - `parent_id` int(11) DEFAULT NULL, + `dept_id` int NOT NULL AUTO_INCREMENT, + `parent_id` int DEFAULT NULL, `dept_path` varchar(255) DEFAULT NULL, `dept_name` varchar(128) DEFAULT NULL, - `sort` int(4) DEFAULT NULL, - `leader` int(11) DEFAULT NULL, + `sort` int DEFAULT NULL, + `leader` int DEFAULT NULL, `phone` varchar(11) DEFAULT NULL, `email` varchar(64) DEFAULT NULL, - `status` int(1) DEFAULT NULL, + `status` int DEFAULT NULL, `create_by` varchar(64) DEFAULT NULL, `update_by` varchar(64) DEFAULT NULL, `create_time` timestamp NULL DEFAULT NULL, @@ -211,22 +213,22 @@ CREATE TABLE `sys_dept` ( `delete_time` timestamp NULL DEFAULT NULL, PRIMARY KEY (`dept_id`), KEY `idx_sys_dept_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for sys_loginlog +-- Table structure for `sys_loginlog` -- ---------------------------- DROP TABLE IF EXISTS `sys_loginlog`; CREATE TABLE `sys_loginlog` ( - `info_id` int(11) NOT NULL AUTO_INCREMENT, + `info_id` int NOT NULL AUTO_INCREMENT, `username` varchar(128) DEFAULT NULL, - `status` int(1) DEFAULT NULL, + `status` int DEFAULT NULL, `ipaddr` varchar(255) DEFAULT NULL, `login_location` varchar(255) DEFAULT NULL, `browser` varchar(255) DEFAULT NULL, `os` varchar(255) DEFAULT NULL, `platform` varchar(255) DEFAULT NULL, - `login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `login_time` timestamp NULL DEFAULT NULL, `create_by` varchar(128) DEFAULT NULL, `update_by` varchar(128) DEFAULT NULL, `remark` varchar(255) DEFAULT NULL, @@ -236,14 +238,14 @@ CREATE TABLE `sys_loginlog` ( `delete_time` timestamp NULL DEFAULT NULL, PRIMARY KEY (`info_id`), KEY `idx_sys_loginlog_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=147 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for sys_menu +-- Table structure for `sys_menu` -- ---------------------------- DROP TABLE IF EXISTS `sys_menu`; CREATE TABLE `sys_menu` ( - `menu_id` int(11) NOT NULL AUTO_INCREMENT, + `menu_id` int NOT NULL AUTO_INCREMENT, `menu_name` varchar(128) DEFAULT NULL, `title` varchar(64) DEFAULT NULL, `icon` varchar(128) DEFAULT NULL, @@ -252,32 +254,32 @@ CREATE TABLE `sys_menu` ( `menu_type` varchar(1) DEFAULT NULL, `action` varchar(16) DEFAULT NULL, `permission` varchar(32) DEFAULT NULL, - `parent_id` int(11) DEFAULT NULL, + `parent_id` int DEFAULT NULL, `no_cache` char(1) DEFAULT NULL, `breadcrumb` varchar(255) DEFAULT NULL, `component` varchar(255) DEFAULT NULL, - `sort` int(4) DEFAULT NULL, + `sort` int DEFAULT NULL, `visible` char(1) DEFAULT NULL, `create_by` varchar(128) DEFAULT NULL, `update_by` varchar(128) DEFAULT NULL, - `is_frame` int(1) DEFAULT '0', + `is_frame` int DEFAULT '0', `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `delete_time` timestamp NULL DEFAULT NULL, PRIMARY KEY (`menu_id`), KEY `idx_sys_menu_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=362 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for sys_post +-- Table structure for `sys_post` -- ---------------------------- DROP TABLE IF EXISTS `sys_post`; CREATE TABLE `sys_post` ( - `post_id` int(11) NOT NULL AUTO_INCREMENT, + `post_id` int NOT NULL AUTO_INCREMENT, `post_name` varchar(128) DEFAULT NULL, `post_code` varchar(128) DEFAULT NULL, - `sort` int(4) DEFAULT NULL, - `status` int(1) DEFAULT NULL, + `sort` int DEFAULT NULL, + `status` int DEFAULT NULL, `remark` varchar(255) DEFAULT NULL, `create_by` varchar(128) DEFAULT NULL, `update_by` varchar(128) DEFAULT NULL, @@ -286,18 +288,18 @@ CREATE TABLE `sys_post` ( `delete_time` timestamp NULL DEFAULT NULL, PRIMARY KEY (`post_id`), KEY `idx_sys_post_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for sys_role +-- Table structure for `sys_role` -- ---------------------------- DROP TABLE IF EXISTS `sys_role`; CREATE TABLE `sys_role` ( - `role_id` int(11) NOT NULL AUTO_INCREMENT, + `role_id` int NOT NULL AUTO_INCREMENT, `role_name` varchar(128) DEFAULT NULL, - `status` int(1) DEFAULT NULL, + `status` int DEFAULT NULL, `role_key` varchar(128) DEFAULT NULL, - `role_sort` int(4) DEFAULT NULL, + `role_sort` int DEFAULT NULL, `flag` varchar(128) DEFAULT NULL, `create_by` varchar(128) DEFAULT NULL, `update_by` varchar(128) DEFAULT NULL, @@ -308,67 +310,67 @@ CREATE TABLE `sys_role` ( `delete_time` timestamp NULL DEFAULT NULL, PRIMARY KEY (`role_id`), KEY `idx_sys_role_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for sys_role_dept +-- Table structure for `sys_role_dept` -- ---------------------------- DROP TABLE IF EXISTS `sys_role_dept`; CREATE TABLE `sys_role_dept` ( - `role_id` int(11) DEFAULT NULL, - `dept_id` int(11) DEFAULT NULL, - `id` int(11) NOT NULL AUTO_INCREMENT, + `role_id` int DEFAULT NULL, + `dept_id` int DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for sys_role_menu +-- Table structure for `sys_role_menu` -- ---------------------------- DROP TABLE IF EXISTS `sys_role_menu`; CREATE TABLE `sys_role_menu` ( - `role_id` int(11) DEFAULT NULL, - `menu_id` int(11) DEFAULT NULL, + `role_id` int DEFAULT NULL, + `menu_id` int DEFAULT NULL, `role_name` varchar(128) DEFAULT NULL, `create_by` varchar(128) DEFAULT NULL, `update_by` varchar(128) DEFAULT NULL, - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=1538 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for sys_settings +-- Table structure for `sys_settings` -- ---------------------------- DROP TABLE IF EXISTS `sys_settings`; CREATE TABLE `sys_settings` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `delete_time` timestamp NULL DEFAULT NULL, - `classify` int(11) DEFAULT NULL, + `classify` int DEFAULT NULL, `content` json DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_sys_settings_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- ---------------------------- --- Table structure for sys_user +-- Table structure for `sys_user` -- ---------------------------- DROP TABLE IF EXISTS `sys_user`; CREATE TABLE `sys_user` ( - `user_id` int(11) NOT NULL AUTO_INCREMENT, + `user_id` int NOT NULL AUTO_INCREMENT, `nick_name` varchar(128) DEFAULT NULL, `phone` varchar(11) DEFAULT NULL, - `role_id` int(11) DEFAULT NULL, + `role_id` int DEFAULT NULL, `salt` varchar(255) DEFAULT NULL, `avatar` varchar(255) DEFAULT NULL, `sex` varchar(255) DEFAULT NULL, `email` varchar(128) DEFAULT NULL, - `dept_id` int(11) DEFAULT NULL, - `post_id` int(11) DEFAULT NULL, + `dept_id` int DEFAULT NULL, + `post_id` int DEFAULT NULL, `create_by` varchar(128) DEFAULT NULL, `update_by` varchar(128) DEFAULT NULL, `remark` varchar(255) DEFAULT NULL, - `status` int(1) DEFAULT NULL, + `status` int DEFAULT NULL, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `delete_time` timestamp NULL DEFAULT NULL, @@ -376,6 +378,6 @@ CREATE TABLE `sys_user` ( `password` varchar(128) DEFAULT NULL, PRIMARY KEY (`user_id`), KEY `idx_sys_user_delete_time` (`delete_time`) -) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; SET FOREIGN_KEY_CHECKS = 1;