-- Migration 001: the schema of a database target's archive file. The -- archivedEvent model in internal/delivery must agree with it. CREATE TABLE archived_events ( id integer PRIMARY KEY AUTOINCREMENT, event_id text, webhook_id text, entrypoint_id text, method text, raw_query text, headers text, body text, content_type text, archived_at datetime ); CREATE INDEX idx_archived_events_event_id ON archived_events (event_id); CREATE INDEX idx_archived_events_archived_at ON archived_events (archived_at);