This commit is contained in:
zfjia committed 2026-11-03 18:31:01 +08:00
1 parent 6e529c7ef7
commit eb5ad9518d
36 files changed
+4195 -581

No files matched your search

+5 -1
View File
@@ -312,6 +312,9 @@ create table lock_auth (
begin_time datetime comment '生效开始时间',
end_time datetime comment '生效结束时间(空表示永久有效)',
auth_time datetime comment '授权操作时间',
source char(1) default '1' comment '授权来源(1平台 2开放接口)',
source_app_code varchar(32) default null comment '来源应用编码(source=2,lock_open_app.app_code)',
source_biz_no varchar(64) default null comment '来源业务单号(可空;外部入住为 biz_no)',
sync_status char(1) default '0' comment '下发同步状态(0待下发 1已下发 2下发成功 3下发失败 4已清除 6待清除;5 预留给 v2 的已过期)',
sync_time datetime comment '最后下发/响应时间',
sync_msg varchar(512) default null comment '下发结果说明',
@@ -329,7 +332,8 @@ create table lock_auth (
key idx_lock_auth_person (person_no),
key idx_lock_auth_device (device_id),
key idx_lock_auth_group (group_id),
key idx_lock_auth_sync (sync_status)
key idx_lock_auth_sync (sync_status),
key idx_lock_auth_source (source, source_app_code)
) engine=innodb comment = '授权数据表';