Files
zyt/server/database/av_permission_log.sql
2026-04-10 14:43:58 +08:00

16 lines
1.1 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.
-- 音视频权限拒绝日志表
CREATE TABLE IF NOT EXISTS `zyt_av_permission_log` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`patient_id` varchar(64) NOT NULL DEFAULT '' COMMENT '患者IDpatient_xxx格式)',
`doctor_id` varchar(64) NOT NULL DEFAULT '' COMMENT '医生IDdoctor_xxx格式)',
`denied_scope` varchar(32) NOT NULL DEFAULT '' COMMENT '被拒绝的权限 scopecamera/record',
`scene` varchar(32) NOT NULL DEFAULT '' COMMENT '触发场景(makeCall / incoming',
`action` varchar(16) NOT NULL DEFAULT 'cancel' COMMENT '用户行为:cancel=取消 / open_setting=去设置',
`wx_version` varchar(32) NOT NULL DEFAULT '' COMMENT '微信基础库版本',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间(Unix秒)',
PRIMARY KEY (`id`),
KEY `idx_patient` (`patient_id`),
KEY `idx_doctor` (`doctor_id`),
KEY `idx_create_time` (`create_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='音视频权限拒绝行为日志';