CREATE TABLE IF NOT EXISTS biz_ziniao_memory_store (
    id BIGINT PRIMARY KEY AUTO_INCREMENT COMMENT '主键',
    cache_type VARCHAR(64) NOT NULL COMMENT '缓存类型',
    cache_key VARCHAR(255) NOT NULL COMMENT '缓存key',
    payload_json LONGTEXT NOT NULL COMMENT '缓存JSON',
    expires_at DATETIME NOT NULL COMMENT '过期时间',
    created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    UNIQUE KEY uk_type_key (cache_type, cache_key),
    KEY idx_expires_at (expires_at)
) COMMENT='紫鸟记忆存储(跨会话SQL缓存)';
