Artifact af28d8a8ba689c919231aa43da39c7107dfed81f68dad7d8a4af75b2de77a649:
- File
schema/ticket-table.sql
— part of check-in
[97a66a25ee]
at
2026-11-09 23:33:15
on branch tickets
— Add tickets: new, ready, show, claim, done, drop
Tickets live in the private repository until shared ones exist. A claim is atomic, session start offers ready work, and audit findings can become tickets. (user: dmestas, size: 1618) [annotate] [blame] [check-ins using] [more...]
-- The ticket schema for ctx's repositories. Stored as the value of -- the repository's 'ticket-table' config entry, then applied by a rebuild. -- -- Tickets are the work agents and people pick up. ctx ships this schema and applies -- it to each repository. In the private repository, subsystem holds the project. -- type Task, Bug, Feature or Question -- status Open, Claimed, Done or Dropped -- -- The first fourteen columns are Fossil's defaults. The rest are ctx's: -- assignee the person or agent working it; empty while unclaimed -- claimed_at when it was claimed -- acceptance what must be true for it to be done -- blocked_by space-separated tkt_uuids that must finish first -- source_session technote id of the session it came from -- source_turn the turn within that session -- result check-in hash, or link, of the finished work CREATE TABLE repository.ticket( tkt_id INTEGER PRIMARY KEY, tkt_uuid TEXT UNIQUE, tkt_mtime DATE, tkt_ctime DATE, type TEXT, status TEXT, subsystem TEXT, priority TEXT, severity TEXT, foundin TEXT, private_contact TEXT, resolution TEXT, title TEXT, comment TEXT, assignee TEXT, claimed_at TEXT, acceptance TEXT, blocked_by TEXT, source_session TEXT, source_turn INTEGER, result TEXT ); CREATE TABLE repository.ticketchng( tkt_id INTEGER REFERENCES ticket, tkt_rid INTEGER REFERENCES blob, tkt_mtime DATE, tkt_user TEXT, login TEXT, username TEXT, mimetype TEXT, icomment TEXT ); CREATE INDEX repository.ticketchng_idx1 ON ticketchng(tkt_id, tkt_mtime);