-- Screenshot persistence table for storing COS object keys
-- Run this SQL on the WVP database before deploying the new version

CREATE TABLE IF NOT EXISTS wvp_ai_camera_snapshot (
    camera_code  VARCHAR(64) PRIMARY KEY,
    cos_key      VARCHAR(512) NOT NULL COMMENT 'COS 对象键',
    updated_at   DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
