CREATE TABLE IF NOT EXISTS outline_page_cache (
    id VARCHAR(100) NOT NULL,
    slug VARCHAR(255) NOT NULL,
    title VARCHAR(500) NOT NULL,
    markdown_content LONGTEXT NOT NULL,
    html_content LONGTEXT NOT NULL,
    updated_at_outline VARCHAR(80) NULL,
    cached_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
    PRIMARY KEY (id),
    UNIQUE KEY uq_outline_slug (slug),
    KEY idx_outline_cached_at (cached_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
