g1t

syntaqx/g1t

public

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

g1t/services/repos/migrations/0001_init.sql

15 lines514 bytes
-- Stored in Artifacts as "<namespace>--<name>".
CREATE TABLE repos (
  id TEXT PRIMARY KEY,
  namespace TEXT NOT NULL,
  name TEXT NOT NULL,
  description TEXT,
  is_private INTEGER NOT NULL DEFAULT 0,
  owner_id TEXT NOT NULL,
  default_branch TEXT NOT NULL DEFAULT 'main',
  -- Set on an attempt's working copy; those are hidden from listings.
  fork_of TEXT REFERENCES repos (id),
  created_at INTEGER NOT NULL DEFAULT (unixepoch()),
  UNIQUE (namespace, name)
);
CREATE INDEX repos_owner ON repos (owner_id);