|
|
/*
|
|
|
Navicat MySQL Data Transfer
|
|
|
|
|
|
Source Server : rszn-dev
|
|
|
Source Server Version : 80034
|
|
|
Source Host : 192.168.2.2:3306
|
|
|
Source Database : huanneng_dev
|
|
|
|
|
|
Target Server Type : MYSQL
|
|
|
Target Server Version : 80034
|
|
|
File Encoding : 65001
|
|
|
|
|
|
Date: 2024-06-07 14:58:49
|
|
|
*/
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS=0;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for emeter_energy
|
|
|
-- ----------------------------
|
|
|
DROP TABLE IF EXISTS `emeter_energy`;
|
|
|
CREATE TABLE `emeter_energy` (
|
|
|
`id` varchar(255) NOT NULL,
|
|
|
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '电表编码',
|
|
|
`value` float(10,4) DEFAULT NULL COMMENT '电表当前读数',
|
|
|
`upload_time` datetime DEFAULT NULL COMMENT '充电机上报时间',
|
|
|
`upload_flag` int DEFAULT NULL COMMENT '0未上传1上传',
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='电表小时';
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for emeter_energy_change
|
|
|
-- ----------------------------
|
|
|
DROP TABLE IF EXISTS `emeter_energy_change`;
|
|
|
CREATE TABLE `emeter_energy_change` (
|
|
|
`id` varchar(255) NOT NULL,
|
|
|
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '电表编码',
|
|
|
`value` float(10,4) DEFAULT NULL COMMENT '电表当前读数',
|
|
|
`upload_time` datetime DEFAULT NULL COMMENT '充电机上报时间',
|
|
|
`upload_flag` int DEFAULT NULL COMMENT '0未上传1上传',
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='电表小时';
|
|
|
-- 添加换电类型
|
|
|
ALTER TABLE swap_order_report_cloud ADD `upload_time` datetime DEFAULT NULL COMMENT "上报时间" ;
|
|
|
|
|
|
-- 添加入仓时间
|
|
|
ALTER TABLE bin_info ADD `in_time` datetime DEFAULT NULL COMMENT "入仓时间" ;
|
|
|
|
|
|
-- 添加站外充电枪编号
|
|
|
ALTER TABLE charge_order ADD COLUMN out_charger_gun_no VARCHAR(255) COMMENT '站外充电枪编号,1枪或2枪';
|
|
|
|
|
|
-- 设备故障表增加报警开始时间字段
|
|
|
ALTER TABLE equip_alarm_record ADD COLUMN start_time DATETIME COMMENT '报警开始时间';
|
|
|
-- 设备处理表增加报警开始时间字段
|
|
|
ALTER TABLE equip_alarm_process_record ADD COLUMN start_time DATETIME COMMENT '报警开始时间';
|
|
|
-- 每日运行,double
|
|
|
ALTER TABLE exchange_station_day_count_result MODIFY COLUMN toltal_swap_all_time DOUBLE;
|
|
|
ALTER TABLE exchange_station_day_count_result MODIFY COLUMN toltal_time_count DOUBLE;
|
|
|
|
|
|
|
|
|
|