flagon-io/g1t

public

Git for AI scale: a forge for thousands of agents working on the same code at once.

g1t/services/billing/migrations/0019_closed_workspaces.sql

9 lines397 bytesCodeBlame
-- Workspaces whose billing was closed because the workspace was deleted
-- (src/closing.rs): who closed it, when, and the balance it had then. The
-- ledger, invoices and statements stay under the slug for accounting.
CREATE TABLE IF NOT EXISTS closed_workspaces (
  workspace TEXT PRIMARY KEY,
  closed_by TEXT NOT NULL,
  closed_at TEXT NOT NULL,
  balance_micros INTEGER NOT NULL DEFAULT 0
);