123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593 |
- /*
- SQLyog v12.2.6 (64 bit)
- MySQL - 8.0.11 : Database - factory_db
- *********************************************************************
- */
- /*!40101 SET NAMES utf8 */;
- /*!40101 SET SQL_MODE=''*/;
- /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
- /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
- /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
- /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
- /*Table structure for table `ao_com_notice` */
- DROP TABLE IF EXISTS `ao_com_notice`;
- CREATE TABLE `ao_com_notice` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(200) NOT NULL COMMENT '标题',
- `content` text COMMENT '内容',
- `published_on` datetime NOT NULL COMMENT '发布时间',
- `published_by` varchar(20) DEFAULT NULL COMMENT '发布人',
- `published_by_dept_name` varchar(30) NOT NULL COMMENT '发布部门',
- `notice_type` char(1) DEFAULT NULL COMMENT '通告类型A全体,F飞行,C乘务员,S安全员',
- `notice_level` char(1) DEFAULT NULL COMMENT '通告等级G局方,C公司,D部门',
- `notice_cat` varchar(20) DEFAULT NULL COMMENT '通告类型:字典 安全提示签派提示',
- `language` varchar(5) NOT NULL COMMENT '语言zh-CN,en',
- `is_must_reed` tinyint(1) DEFAULT '0' COMMENT '1必读,0选读',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='公司公告';
- /*Table structure for table `ao_file_learning` */
- DROP TABLE IF EXISTS `ao_file_learning`;
- CREATE TABLE `ao_file_learning` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(200) NOT NULL COMMENT '标题',
- `content` varchar(2000) DEFAULT NULL COMMENT '内容',
- `published_on` datetime NOT NULL COMMENT '发布时间',
- `published_by` varchar(20) DEFAULT NULL COMMENT '发布人',
- `published_by_dept_name` varchar(30) NOT NULL COMMENT '发布部门',
- `notice_type` char(1) DEFAULT NULL COMMENT '通告类型A全体,F飞行,C乘务员,S安全员',
- `file_path` varchar(20) DEFAULT NULL COMMENT '文件路径',
- `language` varchar(5) NOT NULL COMMENT '语言zh-CN,en',
- `is_must_reed` tinyint(1) DEFAULT '0' COMMENT '1必读,0选读',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文件学习';
- /*Table structure for table `com_dictionary` */
- DROP TABLE IF EXISTS `com_dictionary`;
- CREATE TABLE `com_dictionary` (
- `dict_id` int(11) NOT NULL AUTO_INCREMENT,
- `dict_code` varchar(20) NOT NULL COMMENT '字典编码',
- `dict_name` varchar(50) NOT NULL COMMENT '字典名称',
- `dict_type` varchar(20) NOT NULL COMMENT '字典类型,clientLevel,certType',
- `parent_dict_id` int(11) DEFAULT NULL COMMENT '父类型ID默认为0',
- `dict_name_en` varchar(50) DEFAULT NULL COMMENT '字典英文名称',
- `enable_state` char(1) NOT NULL COMMENT '启用状态,1为启用,0禁用',
- `order_no` tinyint(4) DEFAULT NULL COMMENT '排序值',
- `dict_ico` varchar(50) DEFAULT NULL COMMENT '字典图标地址',
- `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
- `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
- `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
- `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
- PRIMARY KEY (`dict_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=306 DEFAULT CHARSET=utf8 COMMENT='数据字典';
- /*Table structure for table `com_dictionary_mapping` */
- DROP TABLE IF EXISTS `com_dictionary_mapping`;
- CREATE TABLE `com_dictionary_mapping` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `dict_type` varchar(30) DEFAULT NULL COMMENT '平台字典类型',
- `dict_code_cloud` varchar(20) NOT NULL COMMENT '平台字典项编号',
- `dict_code_third_sys` varchar(20) DEFAULT NULL COMMENT '第三方系统字典项编号',
- `dict_code_third_type` varchar(20) DEFAULT NULL COMMENT '第三方系统中字典类型,abnormal_reason不正常原因',
- `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
- `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
- `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
- `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
- PRIMARY KEY (`id`),
- KEY `ind_dict_mapping_third_sys` (`dict_code_third_sys`,`dict_code_third_type`)
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='第三方数据字典com_dictionary与业务系统字典映射';
- /*Table structure for table `ep_board_spot` */
- DROP TABLE IF EXISTS `ep_board_spot`;
- CREATE TABLE `ep_board_spot` (
- `combine_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '对应关系编码',
- `ep_id` int(11) NOT NULL COMMENT '采集机ID',
- `board_id` int(11) NOT NULL COMMENT '控制板ID',
- `spot_id` int(11) NOT NULL COMMENT '工位ID',
- `arg` int(11) NOT NULL COMMENT '附加参数',
- PRIMARY KEY (`combine_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8 COMMENT='采集点对应';
- /*Table structure for table `ep_config` */
- DROP TABLE IF EXISTS `ep_config`;
- CREATE TABLE `ep_config` (
- `ep_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '采集机ID',
- `flow_id` int(11) NOT NULL COMMENT '生产线ID',
- `spots` int(11) NOT NULL COMMENT '工位数量',
- `extra` varchar(5000) NOT NULL COMMENT '设置选项',
- PRIMARY KEY (`ep_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='采集设置';
- /*Table structure for table `ep_state` */
- DROP TABLE IF EXISTS `ep_state`;
- CREATE TABLE `ep_state` (
- `ep_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '采集机ID',
- `spot_data` varchar(5000) NOT NULL COMMENT '工位数据',
- `spot_worker` varchar(5000) NOT NULL COMMENT '工人产量数据',
- PRIMARY KEY (`ep_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='采集状态';
- /*Table structure for table `ep_system` */
- DROP TABLE IF EXISTS `ep_system`;
- CREATE TABLE `ep_system` (
- `data_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '数据ID',
- `ep_id` int(11) NOT NULL COMMENT '设备Id',
- `cpu` varchar(100) NOT NULL COMMENT 'CPU使用',
- `memory` varchar(100) NOT NULL COMMENT '内存使用',
- `processes` varchar(5000) NOT NULL COMMENT '进程信息',
- `os` varchar(100) NOT NULL COMMENT '操作系统',
- `runtime` varchar(2000) NOT NULL COMMENT '运行环境',
- PRIMARY KEY (`data_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='采集机运行状态';
- /*Table structure for table `fc_bi_factory_daily` */
- DROP TABLE IF EXISTS `fc_bi_factory_daily`;
- CREATE TABLE `fc_bi_factory_daily` (
- `data_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '数据标识',
- `pass_num` int(11) NOT NULL COMMENT '合格品数量',
- `fc_day` date NOT NULL COMMENT '记录日期',
- `fail_num` int(11) NOT NULL COMMENT '坏品数量',
- `fail_rate` int(11) NOT NULL COMMENT '坏品率',
- `avg_due` int(11) NOT NULL COMMENT '平均堆积数',
- PRIMARY KEY (`data_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='全厂按日统计';
- /*Table structure for table `fc_bi_flow_daily` */
- DROP TABLE IF EXISTS `fc_bi_flow_daily`;
- CREATE TABLE `fc_bi_flow_daily` (
- `data_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '统计ID',
- `flow_id` int(11) NOT NULL COMMENT '生产线ID',
- `fc_day` date NOT NULL COMMENT '记录日期',
- `fail_num` int(11) NOT NULL COMMENT '坏品数量',
- `fail_rate` int(11) NOT NULL COMMENT '坏品率',
- `avg_due` int(11) NOT NULL COMMENT '平均堆积数',
- `pass_num` int(11) NOT NULL COMMENT '合格品数量',
- PRIMARY KEY (`data_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=126 DEFAULT CHARSET=utf8 COMMENT='产线按日统计';
- /*Table structure for table `fc_bi_worker_daily` */
- DROP TABLE IF EXISTS `fc_bi_worker_daily`;
- CREATE TABLE `fc_bi_worker_daily` (
- `data_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '统计数据ID',
- `worker_id` int(11) NOT NULL COMMENT '员工ID',
- `fc_day` date NOT NULL COMMENT '记录日期',
- `fail_num` int(11) NOT NULL COMMENT '坏品数量',
- `fail_rate` int(11) NOT NULL COMMENT '坏品率',
- `avg_due` int(11) NOT NULL COMMENT '平均堆积数',
- `pass_num` int(11) NOT NULL COMMENT '合格品数量',
- PRIMARY KEY (`data_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8 COMMENT='按日统计';
- /*Table structure for table `fc_flow` */
- DROP TABLE IF EXISTS `fc_flow`;
- CREATE TABLE `fc_flow` (
- `flow_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '生产线ID',
- `flow_name` varchar(100) NOT NULL COMMENT '生产线名称',
- `flow_place` varchar(100) NOT NULL COMMENT '生产线地点',
- `flow_master_id` int(11) NOT NULL COMMENT '负责人ID',
- `flow_spots` int(11) NOT NULL COMMENT '生产线工位数量',
- PRIMARY KEY (`flow_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='生产线信息';
- /*Table structure for table `fc_sector` */
- DROP TABLE IF EXISTS `fc_sector`;
- CREATE TABLE `fc_sector` (
- `sector_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '工序ID',
- `sector_name` varchar(200) NOT NULL COMMENT '工序名称',
- `flow_id` int(11) NOT NULL COMMENT '生产线ID',
- `sector_order` int(11) NOT NULL COMMENT '产线内顺序',
- `counter` int(11) DEFAULT '1' COMMENT '计数方法',
- PRIMARY KEY (`sector_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='工序定义';
- /*Table structure for table `fc_sector_spot` */
- DROP TABLE IF EXISTS `fc_sector_spot`;
- CREATE TABLE `fc_sector_spot` (
- `combine_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '关系ID',
- `sector_id` int(11) NOT NULL COMMENT '工序ID',
- `spot_id` int(11) NOT NULL COMMENT '工位ID',
- `spot_order` int(11) NOT NULL COMMENT '工序内工位顺序',
- PRIMARY KEY (`combine_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='工序内部';
- /*Table structure for table `fc_spot` */
- DROP TABLE IF EXISTS `fc_spot`;
- CREATE TABLE `fc_spot` (
- `spot_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '工位ID',
- `flow_id` int(11) NOT NULL COMMENT '生产线ID',
- `spot_name` varchar(50) DEFAULT NULL COMMENT '工位名称',
- `order_num` int(11) NOT NULL COMMENT '生产线内顺序',
- `ratio` int(11) NOT NULL COMMENT '产能比例',
- PRIMARY KEY (`spot_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8 COMMENT='生产工位表';
- /*Table structure for table `fc_spot_extra` */
- DROP TABLE IF EXISTS `fc_spot_extra`;
- CREATE TABLE `fc_spot_extra` (
- `spot_id` int(11) NOT NULL COMMENT '工位ID',
- `spot_period` int(11) NOT NULL COMMENT '工位统计周期',
- `spot_threshold_failnum` int(11) NOT NULL COMMENT '坏品数阈值',
- `spot_threshold_failrate` decimal(10,0) NOT NULL COMMENT '坏品率阈值',
- `spot_threshold_min_output` int(11) NOT NULL COMMENT '产能阈值',
- PRIMARY KEY (`spot_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='工位统计信息';
- /*Table structure for table `fc_system_event` */
- DROP TABLE IF EXISTS `fc_system_event`;
- CREATE TABLE `fc_system_event` (
- `sysev_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '事件记录ID',
- `event_type` int(11) NOT NULL COMMENT '事件类型',
- `event_level` int(11) NOT NULL COMMENT '事件严重等级',
- `event_title` varchar(300) DEFAULT NULL COMMENT '事件标题',
- `event_detail` varchar(1000) DEFAULT NULL COMMENT '事件详情',
- `event_status` int(11) NOT NULL COMMENT '事件状态',
- `time_point` bigint(20) NOT NULL COMMENT '发生时间',
- PRIMARY KEY (`sysev_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=12971 DEFAULT CHARSET=utf8 COMMENT='系统事件';
- /*Table structure for table `fc_work_period` */
- DROP TABLE IF EXISTS `fc_work_period`;
- CREATE TABLE `fc_work_period` (
- `period_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '时间段ID',
- `period_name` varchar(100) NOT NULL COMMENT '时间段名称',
- `start_second` int(11) NOT NULL COMMENT '开始时间',
- `end_second` int(11) NOT NULL COMMENT '结束时间',
- PRIMARY KEY (`period_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='工作时间段信息';
- /*Table structure for table `fc_work_raw` */
- DROP TABLE IF EXISTS `fc_work_raw`;
- CREATE TABLE `fc_work_raw` (
- `raw_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '原始数据ID',
- `schedule_id` int(11) NOT NULL DEFAULT '0' COMMENT '班次ID',
- `board_id` int(11) NOT NULL COMMENT '控制板ID',
- `timing` bigint(20) NOT NULL COMMENT '时间点',
- `handheld_id` int(11) NOT NULL COMMENT '手持ID',
- `pass_num` int(11) NOT NULL COMMENT '合格品数量',
- `total_num` int(11) NOT NULL COMMENT '总计数量',
- `hand_pass` int(11) NOT NULL COMMENT '手持合格数',
- `hand_total` int(11) NOT NULL COMMENT '手持总计数',
- PRIMARY KEY (`raw_id`),
- KEY `handheld_id` (`handheld_id`),
- KEY `board_id` (`board_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=78272 DEFAULT CHARSET=utf8 COMMENT='原始工作量数据';
- /*Table structure for table `fc_work_schedule` */
- DROP TABLE IF EXISTS `fc_work_schedule`;
- CREATE TABLE `fc_work_schedule` (
- `schedule_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '班次ID',
- `work_day` date NOT NULL COMMENT '班次日期',
- `start_time` datetime NOT NULL COMMENT '实际开始',
- `end_time` datetime NOT NULL COMMENT '实际结束',
- `period_id` int(11) NOT NULL COMMENT '工作时间段ID',
- `flow_id` int(11) NOT NULL COMMENT '生产线ID',
- `start_uid` int(11) NOT NULL COMMENT '上班操作人',
- `end_uid` int(11) NOT NULL COMMENT '下班操作人',
- `status` int(11) NOT NULL COMMENT '班次状态',
- PRIMARY KEY (`schedule_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8 COMMENT='班次信息';
- /*Table structure for table `fc_work_schedule_event` */
- DROP TABLE IF EXISTS `fc_work_schedule_event`;
- CREATE TABLE `fc_work_schedule_event` (
- `event_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '事件记录ID',
- `schedule_id` int(11) NOT NULL COMMENT '班次ID',
- `evtype` int(11) NOT NULL COMMENT '事件类型',
- `period_id` int(11) NOT NULL COMMENT '时间段ID',
- `worker_id` int(11) NOT NULL COMMENT '工人ID',
- `spot_id` int(11) NOT NULL COMMENT '工位ID',
- `occurance` datetime NOT NULL COMMENT '实际发生时间',
- PRIMARY KEY (`event_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='工作上下班信息';
- /*Table structure for table `fc_work_schedule_load` */
- DROP TABLE IF EXISTS `fc_work_schedule_load`;
- CREATE TABLE `fc_work_schedule_load` (
- `load_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '班次产量ID',
- `schedule_id` int(11) NOT NULL COMMENT '班次ID',
- `spot_id` int(11) NOT NULL COMMENT '工位ID',
- `user_id` int(11) NOT NULL COMMENT '员工ID',
- `pass_num` int(11) NOT NULL COMMENT '合格数量',
- `fail_num` int(11) NOT NULL COMMENT '坏品数量',
- `due` int(11) NOT NULL COMMENT '堆积数量',
- `time_point` bigint(20) NOT NULL COMMENT '时间点',
- PRIMARY KEY (`load_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=82 DEFAULT CHARSET=utf8 COMMENT='班次产量信息';
- /*Table structure for table `fc_work_schedule_outcome` */
- DROP TABLE IF EXISTS `fc_work_schedule_outcome`;
- CREATE TABLE `fc_work_schedule_outcome` (
- `outcome_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '产能数据ID',
- `schedule_id` int(4) NOT NULL COMMENT '班次ID',
- `spot_id` int(11) NOT NULL COMMENT '工位ID',
- `worker_id` int(11) NOT NULL COMMENT '员工ID',
- `pass_num` int(11) NOT NULL COMMENT '合格数量',
- `fail_num` int(11) NOT NULL COMMENT '坏品数量',
- `avg_due` int(11) NOT NULL COMMENT '平均堆积数量',
- PRIMARY KEY (`outcome_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=120 DEFAULT CHARSET=utf8 COMMENT='产能数据结算';
- /*Table structure for table `fc_worker` */
- DROP TABLE IF EXISTS `fc_worker`;
- CREATE TABLE `fc_worker` (
- `user_id` int(10) NOT NULL AUTO_INCREMENT COMMENT '本系统用户ID',
- `user_local_no` char(30) DEFAULT NULL COMMENT '公司内工号',
- `user_login_name` varchar(50) DEFAULT NULL COMMENT '员工设备名',
- `password` varchar(50) DEFAULT NULL COMMENT '密码',
- `user_name` varchar(50) DEFAULT NULL COMMENT '姓名',
- `user_name_en` varchar(50) DEFAULT NULL COMMENT '拼音',
- `mobile_phone` varchar(50) DEFAULT NULL COMMENT '手机',
- `dept_id` varchar(50) DEFAULT NULL COMMENT '部门ID',
- `dept_name` varchar(30) DEFAULT NULL COMMENT '部门名称',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态1有效,0无效',
- `gender` varchar(1) DEFAULT NULL COMMENT '性别',
- `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
- `created_by` varchar(20) DEFAULT NULL COMMENT '创建人的工号',
- `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
- `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人的工号',
- PRIMARY KEY (`user_id`),
- UNIQUE KEY `user_local_no` (`user_local_no`),
- KEY `idx_userno` (`user_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8 COMMENT='员工信息表';
- /*Table structure for table `sys_atachment` */
- DROP TABLE IF EXISTS `sys_atachment`;
- CREATE TABLE `sys_atachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `parent_table_name` varchar(30) NOT NULL COMMENT '主表名',
- `parent_row_id` varchar(50) NOT NULL COMMENT '主表记录ID',
- `file_name` varchar(500) NOT NULL COMMENT '文件名',
- `file_ext_name` varchar(20) NOT NULL COMMENT '文件扩展名',
- `file_path` varchar(500) NOT NULL COMMENT '文件路径',
- `order_no` tinyint(4) DEFAULT NULL COMMENT '排序,正序1在前',
- `created_by_code` varchar(10) DEFAULT NULL COMMENT '创建人工号',
- `created_by_name` varchar(30) DEFAULT NULL COMMENT '创建人姓名',
- `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
- `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
- `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
- `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='附件';
- /*Table structure for table `sys_feedback` */
- DROP TABLE IF EXISTS `sys_feedback`;
- CREATE TABLE `sys_feedback` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `feedback_type` varchar(20) NOT NULL COMMENT '反馈类型字典值,字典feedbackType',
- `feedback_type_name` varchar(50) DEFAULT NULL COMMENT '反馈类型名称',
- `content` varchar(2000) NOT NULL COMMENT '内容',
- `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
- `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
- `modified_on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '修改日期',
- `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='问题反馈';
- /*Table structure for table `sys_master_server` */
- DROP TABLE IF EXISTS `sys_master_server`;
- CREATE TABLE `sys_master_server` (
- `item_id` int(10) unsigned NOT NULL,
- `server_ip` int(10) unsigned NOT NULL COMMENT '主控IP',
- `updatetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间戳',
- PRIMARY KEY (`item_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='负载均衡-定时任务主服务器';
- /*Table structure for table `sys_personal` */
- DROP TABLE IF EXISTS `sys_personal`;
- CREATE TABLE `sys_personal` (
- `user_no` varchar(20) NOT NULL COMMENT '用户工号',
- `head_img` varchar(200) DEFAULT NULL COMMENT '头像URL',
- `birthday` date DEFAULT NULL COMMENT '出生日期',
- `phone_bak` varchar(30) DEFAULT NULL COMMENT '备用电话',
- `email` varchar(50) DEFAULT NULL COMMENT '邮箱',
- `specialty` varchar(100) DEFAULT NULL COMMENT '特长',
- `wechat` varchar(30) DEFAULT NULL COMMENT '微信号',
- `open_wx` tinyint(1) DEFAULT '0' COMMENT '是否公开微信号 1公开0隐藏',
- `address` varchar(200) DEFAULT NULL COMMENT '深圳住址',
- `open_addr` tinyint(1) DEFAULT NULL COMMENT '是否公开深圳住址 1公开0隐藏',
- `car_id` varchar(20) DEFAULT NULL COMMENT '车牌号',
- `open_car_id` tinyint(1) DEFAULT NULL COMMENT '是否公开车牌 1公开0隐藏',
- `parent_addr` varchar(200) DEFAULT NULL COMMENT '父母住址',
- `open_par_addr` tinyint(1) DEFAULT NULL COMMENT '是否父母地址 1公开0隐藏',
- `life_photo_1` varchar(200) DEFAULT NULL COMMENT '生活照地址1',
- `life_photo_2` varchar(200) DEFAULT NULL COMMENT '生活照地址2',
- `life_photo_3` varchar(200) DEFAULT NULL COMMENT '生活照地址3',
- `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
- `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
- `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
- `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
- PRIMARY KEY (`user_no`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='个人信息';
- /*Table structure for table `sys_resource` */
- DROP TABLE IF EXISTS `sys_resource`;
- CREATE TABLE `sys_resource` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(50) NOT NULL COMMENT '名称',
- `code` varchar(80) DEFAULT NULL COMMENT '编码',
- `res_type` char(1) DEFAULT NULL COMMENT '资源类型(M菜单,B按钮)',
- `url` varchar(120) DEFAULT NULL COMMENT '菜单地址',
- `parent_id` int(11) DEFAULT NULL COMMENT '父ID',
- `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1显示,0不显示',
- `menu_order` tinyint(4) DEFAULT NULL COMMENT '顺序',
- `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
- `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
- `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
- `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=121 DEFAULT CHARSET=utf8 COMMENT='资源';
- /*Table structure for table `sys_role` */
- DROP TABLE IF EXISTS `sys_role`;
- CREATE TABLE `sys_role` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(50) NOT NULL COMMENT '角色名称',
- `role_code` varchar(20) DEFAULT NULL COMMENT '角色编号',
- `remark` varchar(200) DEFAULT NULL COMMENT '说明',
- `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
- `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
- `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
- `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
- `is_default` varchar(1) DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=83 DEFAULT CHARSET=utf8 COMMENT='角色';
- /*Table structure for table `sys_role_resource` */
- DROP TABLE IF EXISTS `sys_role_resource`;
- CREATE TABLE `sys_role_resource` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `role_id` int(11) NOT NULL,
- `resource_id` int(11) NOT NULL,
- `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
- `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
- `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
- `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1556 DEFAULT CHARSET=utf8 COMMENT='角色资源权限';
- /*Table structure for table `sys_user` */
- DROP TABLE IF EXISTS `sys_user`;
- CREATE TABLE `sys_user` (
- `user_no` varchar(20) NOT NULL COMMENT '用户工号',
- `user_login_name` varchar(50) DEFAULT NULL COMMENT '账号',
- `password` varchar(50) DEFAULT NULL COMMENT '密码',
- `user_name` varchar(50) DEFAULT NULL,
- `user_name_en` varchar(50) DEFAULT NULL,
- `mobile_phone` varchar(50) DEFAULT NULL COMMENT '手机',
- `p_code` varchar(20) DEFAULT NULL COMMENT 'FOC代码',
- `dept_id` varchar(50) DEFAULT NULL COMMENT '部门ID',
- `dept_name` varchar(30) DEFAULT NULL COMMENT '部门名称',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态1有效,0无效',
- `gender` varchar(1) DEFAULT NULL COMMENT '性别',
- `crew_type` char(1) DEFAULT NULL COMMENT '机组人员类型F飞行,C乘务员,S安全员',
- `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
- `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
- `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
- `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
- PRIMARY KEY (`user_no`),
- KEY `idx_userno` (`user_no`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户表';
- /*Table structure for table `sys_user_device_binding` */
- DROP TABLE IF EXISTS `sys_user_device_binding`;
- CREATE TABLE `sys_user_device_binding` (
- `id` int(11) DEFAULT NULL,
- `user_no` tinytext,
- `client_id` tinytext,
- `device_name` tinytext,
- `bind_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `last_login_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `on_black_list` tinyint(4) DEFAULT NULL,
- `created_on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `created_by` tinytext,
- `modified_on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `modified_by` tinytext
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='用户绑定设备表';
- /*Table structure for table `sys_user_role` */
- DROP TABLE IF EXISTS `sys_user_role`;
- CREATE TABLE `sys_user_role` (
- `id` int(11) DEFAULT NULL,
- `user_no` tinytext CHARACTER SET latin1 COLLATE latin1_swedish_ci,
- `role_id` int(11) DEFAULT NULL,
- `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `created_by` tinytext CHARACTER SET latin1 COLLATE latin1_swedish_ci,
- `modified_on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `modified_by` tinytext CHARACTER SET latin1 COLLATE latin1_swedish_ci
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户角色';
- /*Table structure for table `sys_visit_log` */
- DROP TABLE IF EXISTS `sys_visit_log`;
- CREATE TABLE `sys_visit_log` (
- `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `log_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `call_api` tinytext,
- `api_desc` varchar(200) DEFAULT NULL,
- `user_no` tinytext,
- `device` tinytext,
- `remote_addr` tinytext,
- `remote_host` tinytext,
- `input_params` varchar(200) DEFAULT NULL,
- `error` int(11) DEFAULT NULL,
- `time_consuming` int(11) DEFAULT NULL,
- `bak` varchar(200) DEFAULT NULL,
- PRIMARY KEY (`log_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1990103 DEFAULT CHARSET=latin1 COMMENT='系统API调用日志表';
- /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
- /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
- /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
- /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|