Files
aiData/DataX/scheme/output/t_connector_doris.sql
HuangHai 8e0309bb7b 'commit'
2026-02-05 13:24:59 +08:00

38 lines
1.9 KiB
SQL
Raw 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.

CREATE TABLE `t_connector` (
`id` BIGINT NOT NULL,
`equipment_id` BIGINT NOT NULL COMMENT '所属设备编码id',
`connector_sn` VARCHAR(50) NOT NULL COMMENT '接口编码',
`connector_short_sn` VARCHAR(50) NOT NULL COMMENT '接口短编号',
`connector_no` TINYINT,
`connector_name` VARCHAR(30) COMMENT '接口名称',
`connector_type` TINYINT NOT NULL COMMENT '接口类型 1:家用插座;2:交流接口插座;3:交流接口插头;4:直流接口枪头 5:无线充电座;6:其它
1:家用插座;
2:交流接口插座;
3:交流接口插头;
4:直流接口枪头
5:无线充电座;
6:其它',
`voltage_upper_limits` SMALLINT NOT NULL COMMENT '额定电压上限',
`voltage_lower_limits` SMALLINT NOT NULL COMMENT '额定电压下限',
`current` SMALLINT NOT NULL DEFAULT '0' COMMENT '额定电流',
`power` DOUBLE NOT NULL DEFAULT '0.0' COMMENT '额定功率',
`parkno` VARCHAR(20) COMMENT '车位号',
`appointment_id` BIGINT COMMENT '预约记录id',
`appointment_user_id` BIGINT COMMENT '预约记录的用户id',
`open_lock_user_id` BIGINT COMMENT '开锁的用户id',
`detection_type` TINYINT DEFAULT '0' COMMENT '检测类型 0 无 1 检测平台 2 CNTE检测',
`is_ground_lock` TINYINT DEFAULT '0' COMMENT '0没有地锁 1有地锁',
`is_ground_lock_msg` VARCHAR(20) COMMENT '是否配有地锁解释',
`is_geomagnetic` TINYINT DEFAULT '0' COMMENT '0没有地磁 1有地磁',
`is_geomagnetic_msg` VARCHAR(20) COMMENT '是否配有地磁',
`is_appointment` TINYINT DEFAULT '0' COMMENT '0可预约 1已预约 2不可预约 ',
`is_appointment_msg` VARCHAR(20) COMMENT '预约状态解释',
`auto_open_lock_time` DATETIME COMMENT '预约的时间截止点',
`create_time` DATETIME COMMENT '创建时间',
`update_time` DATETIME COMMENT '更新时间'
)
UNIQUE KEY(`id`)
DISTRIBUTED BY HASH(`id`) BUCKETS 1
PROPERTIES (
"replication_num" = "1"
);