Deferred from the Oct 2026 review. Best done before the first release, while 001_schema.sql is the only migration.
All timestamps are BIGINT Unix seconds (the old 001 header said "worth revisiting"). Move to timestamptz; this touches most queries (time.Unix(...) scans, nowEpoch, to_timestamp(received_at) in stats).
Identity columns are GENERATED BY DEFAULT (kept only for the SQLite import that no longer exists); use ALWAYS.
schedule_entries.date is a TEXT UTC day, so there is no per-team timezone.
incident_events.type and escalation_targets.kind are free text / partly constrained: add CHECKs.
incidents.status is redundant with resolved_at / snoozed_until / archived_at.
Write-only columns never read by any query: users.invited_via, sessions.user_agent, user_identities.last_login_at (use them, e.g. a session list, or drop).
Mirror any JSON shape change in terdut-tui/internal/api/types.go and terdut-operator/internal/tdclient.
Deferred from the Oct 2026 review. Best done before the first release, while `001_schema.sql` is the only migration.
- All timestamps are `BIGINT` Unix seconds (the old 001 header said "worth revisiting"). Move to `timestamptz`; this touches most queries (`time.Unix(...)` scans, `nowEpoch`, `to_timestamp(received_at)` in stats).
- Identity columns are `GENERATED BY DEFAULT` (kept only for the SQLite import that no longer exists); use `ALWAYS`.
- `schedule_entries.date` is a TEXT UTC day, so there is no per-team timezone.
- `incident_events.type` and `escalation_targets.kind` are free text / partly constrained: add CHECKs.
- `incidents.status` is redundant with `resolved_at` / `snoozed_until` / `archived_at`.
- Write-only columns never read by any query: `users.invited_via`, `sessions.user_agent`, `user_identities.last_login_at` (use them, e.g. a session list, or drop).
Mirror any JSON shape change in `terdut-tui/internal/api/types.go` and `terdut-operator/internal/tdclient`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Deferred from the Oct 2026 review. Best done before the first release, while
001_schema.sqlis the only migration.BIGINTUnix seconds (the old 001 header said "worth revisiting"). Move totimestamptz; this touches most queries (time.Unix(...)scans,nowEpoch,to_timestamp(received_at)in stats).GENERATED BY DEFAULT(kept only for the SQLite import that no longer exists); useALWAYS.schedule_entries.dateis a TEXT UTC day, so there is no per-team timezone.incident_events.typeandescalation_targets.kindare free text / partly constrained: add CHECKs.incidents.statusis redundant withresolved_at/snoozed_until/archived_at.users.invited_via,sessions.user_agent,user_identities.last_login_at(use them, e.g. a session list, or drop).Mirror any JSON shape change in
terdut-tui/internal/api/types.goandterdut-operator/internal/tdclient.