Skip to main content

TABLE_SQL

Constant TABLE_SQL 

Source
pub const TABLE_SQL: &str = "CREATE TABLE webhook_events (
  id INTEGER PRIMARY KEY,
  source TEXT NOT NULL,
  event_id TEXT NOT NULL,
  payload TEXT NOT NULL,
  status TEXT NOT NULL,
  attempts INTEGER NOT NULL DEFAULT 1,
  error TEXT,
  received_at INTEGER NOT NULL,
  processed_at INTEGER,
  UNIQUE (source, event_id)
);
";
Expand description

The webhook_events table once records deliveries in, created by the migration of ocre g webhook.