check / check (push) Waiting to run
Replaces #559, which conflicted. Model: opus-5-5
19 lines
545 B
SQL
19 lines
545 B
SQL
-- Migration 001: the schema of a database target's archive file. The
|
|
-- archivedEvent model in internal/archive 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);
|