Remove all ctime usage and storage #55

Merged
sneak merged 2 commits from remove-ctime into main 2026-03-20 03:12:47 +01:00

2 Commits

Author SHA1 Message Date
user
15f0172e0c fix: restore ON DELETE CASCADE on snapshot_files.file_id and snapshot_blobs.blob_id FKs
All checks were successful
check / check (pull_request) Successful in 2m26s
2026-03-19 06:15:40 -07:00
user
1717677288 remove ctime column from schema, model, queries, scanner, and docs
All checks were successful
check / check (pull_request) Successful in 4m19s
ctime is ambiguous cross-platform (macOS birth time vs Linux inode change
time), never used operationally (scanning triggers on mtime), cannot be
restored on either platform, and was write-only forensic data with no
consumer.

Removes ctime from:
- files table schema (schema.sql)
- File struct (models.go)
- all SQL queries and scan targets (files.go)
- scanner file metadata collection (scanner.go)
- all test files
- ARCHITECTURE.md and docs/DATAMODEL.md

closes #54
2026-03-19 06:08:07 -07:00