Files
jsowell-charger-web/sql/jcpp_sync_record.sql
2025-12-30 15:59:34 +08:00

22 lines
1.3 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- JCPP 充电桩同步记录表
CREATE TABLE `jcpp_sync_record` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`sync_type` varchar(20) NOT NULL COMMENT '同步类型FULL-全量INCREMENTAL-增量)',
`sync_status` varchar(20) NOT NULL COMMENT '同步状态RUNNING-进行中SUCCESS-成功FAILED-失败)',
`start_time` datetime NOT NULL COMMENT '开始时间',
`end_time` datetime DEFAULT NULL COMMENT '结束时间',
`total_piles` int(11) DEFAULT 0 COMMENT '总充电桩数',
`success_piles` int(11) DEFAULT 0 COMMENT '成功充电桩数',
`failed_piles` int(11) DEFAULT 0 COMMENT '失败充电桩数',
`total_guns` int(11) DEFAULT 0 COMMENT '总充电枪数',
`success_guns` int(11) DEFAULT 0 COMMENT '成功充电枪数',
`failed_guns` int(11) DEFAULT 0 COMMENT '失败充电枪数',
`error_message` text COMMENT '错误信息',
`create_by` varchar(20) DEFAULT NULL COMMENT '创建人',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_sync_type` (`sync_type`) USING BTREE,
KEY `idx_start_time` (`start_time`) USING BTREE,
KEY `idx_sync_status` (`sync_status`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='JCPP 充电桩同步记录表';