CREATE TABLE IF NOT EXISTS accepted_plan_slots_update_job (
    plan_id UUID PRIMARY KEY,
    status VARCHAR(32) NOT NULL,
    process_instance_key BIGINT NULL,
    locked_by VARCHAR(255) NULL,
    locked_until TIMESTAMP NULL,
    attempts INT NOT NULL DEFAULT 0,
    last_error TEXT NULL,
    created_at TIMESTAMP NOT NULL,
    updated_at TIMESTAMP NOT NULL
);
