123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- drop table if exists park_room_door;
- create table park_room_door
- (
- id varchar(255) not null
- primary key,
- room_id varchar(255) null comment '房间ID',
- room_name varchar(255) null comment '房间名称',
- floor_id varchar(255) null comment '楼层ID',
- floor_name varchar(255) null comment '楼层名称',
- building_id varchar(255) null comment '楼栋ID',
- building_name varchar(255) null comment '楼栋名称',
- house_id varchar(255) null comment '小区ID',
- house_name varchar(255) null comment '小区名称',
- room_state int null comment '房间状态(1 闲置 2 出租 4到期 5打扫 6维修)',
- electric_num int null comment '门锁电量',
- lock_mac varchar(255) null comment '门锁MAC',
- lock_state int null comment '门锁状态(3 在线 4离线)',
- aes_key varchar(255) null comment '门锁AES秘钥',
- admin_auth_code varchar(255) null comment '管理员鉴权码',
- general_auth_code varchar(255) null comment '普通用户鉴权码',
- temp_auth_code varchar(255) null comment '临时鉴权码',
- ble_protocol_ver varchar(255) null comment '蓝牙锁协议版本',
- hardware_version varchar(255) null comment '门锁硬件版本',
- software_version varchar(255) null comment '门锁软件版本',
- imsi varchar(255) null comment 'IMSI',
- imei varchar(255) null comment 'IMEI',
- iccid varchar(255) null comment 'ICCID:资费卡号',
- rsrp varchar(255) null comment '信号接收功率',
- sinr varchar(255) null comment '信号与干扰加噪声比',
- cat1_software_version varchar(255) null comment 'CAT1的软件版本',
- cat1_hardware_version varchar(255) null comment 'CAT1的硬件版本',
- create_time datetime null comment '创建时间'
- )
- comment '门锁房间列表' row_format = DYNAMIC;
- drop table if exists park_room_door_sync;
- create table park_room_door_sync
- (
- id varchar(255) not null
- primary key,
- room_id varchar(255) null comment '房间id',
- sync_time datetime null comment '上次同步日志时间'
- )
- comment '门锁房间同步信息' row_format = DYNAMIC;
- drop table if exists park_room_door_log;
- create table park_room_door_log
- (
- id varchar(255) not null
- primary key,
- room_id varchar(255) null comment '房间id',
- log_id varchar(255) null comment '日志ID',
- log_type int null comment '日志类型',
- lock_type int null comment '门锁类型',
- lock_mac varchar(255) null comment '门锁mac',
- update_time datetime null comment '日志触发时间',
- log_level varchar(255) null comment '日志等级(DEBUG,INFO,WARN,ERROR)',
- create_time datetime null comment '日志创建时间',
- log_alert varchar(2000) null comment '日志描述',
- sync_time datetime null comment '同步时间',
- looking_notes varchar(4000) null comment '备注',
- update_user varchar(255) null comment '操作人'
- ) comment '门锁日志表' row_format = DYNAMIC;
|