Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
726 B
Raw Blame
-- Latest subscription rate-limit snapshot per runtime (MUL-9427): how much of
-- the agent CLI account's 5-hour / weekly windows is used and when each
-- resets, as the CLI itself reported during the runtime's most recent task.
-- One row per runtime, replaced by newer observations.
--
-- No foreign keys (repo rule): runtime deletion (DeleteAgentRuntime,
-- DeleteAgentRuntimesByProfile) and workspace teardown remove these rows in
-- the same statements that delete the runtimes.
CREATE TABLE IF NOT EXISTS runtime_rate_limit (
    runtime_id   UUID PRIMARY KEY,
    workspace_id UUID NOT NULL,
    snapshot     JSONB NOT NULL,
    observed_at  TIMESTAMPTZ NOT NULL,
    updated_at   TIMESTAMPTZ NOT NULL DEFAULT now()
);