0001 Init
Path:
_archive/loom-stale-pre-sprint-snapshot/migrations/0001_init.sqlRelative: loom-stale-pre-sprint-snapshot/migrations/0001_init.sqlSubproject: _archiveCategory: archivedLines: 101Bytes: 4,113Imports: 0Exports: 0
Content Preview
- -- LOOM 0001_init — 7 core tables + FTS5 + append-only enforcement.
- -- Identical on local workerd (--local) and edge D1 (--remote): D1 = SQLite.
- CREATE TABLE goals (
- goal_id TEXT PRIMARY KEY,
- original_spec TEXT NOT NULL,
- spec_hash TEXT NOT NULL,
- status TEXT NOT NULL CHECK (status IN ('active','reformulating','halted','completed','failed')),
- tunables_json TEXT NOT NULL,
- created_at TEXT NOT NULL
- );
- CREATE TABLE stages (
- stage_id TEXT PRIMARY KEY,
- goal_i