CREATE TABLE IF NOT EXISTS telegram_updates (
    id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    update_id BIGINT NOT NULL,
    payload_json JSON NOT NULL,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    UNIQUE KEY uniq_update_id (update_id)
);
