halkyon/halkyon_learn_client/lib/migrations/20260930145136285-reviews
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tizian 「ティツィアーン」 5334a0baa5
feat(server): the review log, synced and append-only
ReviewLog keeps every rating of a card: the card, the rating (FSRS's 1 again to 4 easy), when (UTC) and how long answering took, as decided. It is never changed; each device derives a card's schedule by replaying its reviews, so reviews from different devices never conflict. No device id: the sync engine knows each row's device.

The migration (by CLI) only adds: the table, an index on spaceId for space deletion, one for a card's reviews in time order, and the foreign keys (from the space with ON DELETE CASCADE; from the card with ON DELETE CASCADE, DEFERRABLE INITIALLY DEFERRED).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-09-30 20:38:19 +02:00
..
definition.json feat(server): the review log, synced and append-only 2026-09-30 20:38:19 +02:00
definition_project.json feat(server): the review log, synced and append-only 2026-09-30 20:38:19 +02:00
migration.dart feat(server): the review log, synced and append-only 2026-09-30 20:38:19 +02:00
migration.json feat(server): the review log, synced and append-only 2026-09-30 20:38:19 +02:00