CREATE TABLE IF NOT EXISTS webhook_event_log (
    id SERIAL PRIMARY KEY,
    event_id VARCHAR(255) NOT NULL,
    provider VARCHAR(20) NOT NULL,
    event_type VARCHAR(100) NOT NULL,
    processed_at TIMESTAMPTZ DEFAULT NOW(),
    payload_hash VARCHAR(64),
    UNIQUE(provider, event_id)
);
