头像检测。否符合要求

This commit is contained in:
spllzh
2025-10-05 16:29:45 +08:00
parent 6f96287920
commit 725a5294d0
32 changed files with 1024 additions and 0 deletions

View File

@@ -12,3 +12,4 @@ AFTER `sales_name`;

View File

@@ -0,0 +1,22 @@
-- 人脸检测日志表
CREATE TABLE IF NOT EXISTS `face_detect_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`request_id` varchar(64) NOT NULL COMMENT '请求ID',
`model` varchar(100) NOT NULL COMMENT '使用的模型',
`image_url` varchar(500) NOT NULL COMMENT '图片URL',
`request_time` datetime NOT NULL COMMENT '请求时间',
`response_time` datetime DEFAULT NULL COMMENT '响应时间',
`status_code` int(11) DEFAULT NULL COMMENT 'HTTP状态码',
`success` tinyint(1) DEFAULT 0 COMMENT '是否成功',
`face_count` int(11) DEFAULT 0 COMMENT '检测到的人脸数量',
`response_data` longtext COMMENT '完整响应数据',
`error_message` text COMMENT '错误信息',
`processing_time_ms` bigint(20) DEFAULT NULL COMMENT '处理时间(毫秒)',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_request_id` (`request_id`),
KEY `idx_request_time` (`request_time`),
KEY `idx_success` (`success`),
KEY `idx_face_count` (`face_count`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='人脸检测日志表';