The schema the plan specified had three places where a PocketBase quirk blocked normal use of intake_links / activity rows. None of them surfaced in Task 1 because the unit-level test there only checked rule application, not inserts. 1. intake_links.submission_count and submission_count_today were required: true with min: 0. PocketBase treats 0 as blank for required number fields, so every insert 400'd. Made optional. 2. intake_links.active was required: true, which rejects false as blank (the same quirk). The owner can mint an already-revoked link (the test exercises this); made optional. 3. activity.actor was a required relation. The public route writes a card_submitted_anonymously row for a submitter who has no user account; empty string is not a valid relation. Made optional and dropped actor: '' from the route. |
||
|---|---|---|
| .. | ||
| _dbg.ts | ||
| backfill.ts | ||
| compute.ts | ||
| relink.ts | ||
| seed-demo.ts | ||
| setup-remote.ts | ||