fix(db): add missing columns to jobs and bots schema

jobs: add heartbeat_at and created_at columns needed by acb-worker
bots: add archetype column needed by acb-index-builder

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jedarden 2026-04-20 23:29:02 -04:00
parent 6142262edd
commit f206a87575

View file

@ -146,7 +146,8 @@ CREATE TABLE IF NOT EXISTS bots (
description TEXT,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
last_active TIMESTAMPTZ,
consec_fails INTEGER NOT NULL DEFAULT 0
consec_fails INTEGER NOT NULL DEFAULT 0,
archetype VARCHAR(64)
);
CREATE TABLE IF NOT EXISTS matches (
@ -178,7 +179,9 @@ CREATE TABLE IF NOT EXISTS jobs (
worker_id VARCHAR(64),
config_json JSONB NOT NULL,
claimed_at TIMESTAMPTZ,
completed_at TIMESTAMPTZ
completed_at TIMESTAMPTZ,
heartbeat_at TIMESTAMPTZ,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE TABLE IF NOT EXISTS rating_history (