CREATE TABLE reactions (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  reducer TEXT NOT NULL REFERENCES reducers(name),
  params_hash TEXT,
  condition TEXT,
  worker_url TEXT NOT NULL,
  config TEXT NOT NULL DEFAULT '{}',
  created_at INTEGER NOT NULL DEFAULT (unixepoch() * 1000)
);
CREATE INDEX idx_reactions_reducer ON reactions(reducer);
