You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
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枪';
-- 每日运行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;