Migration 0003 adds the concept's tables: dishes with ingredients,
steps and translations, stores and aisles, rounds, wishes, slots,
shopping items, pantry staples, receipts and lines, ingredient aliases,
price points, ratings, kudos, helper points, achievements, plus global
canonical ingredients (readable by all, writable only in migrations).
Every household table carries household_id with FORCE RLS, and
references inside a household are paired foreign keys so a row can
never point at another household's data (E-0007). Roles follow the
concept: admin, member, child, guest; households.created_by marks who
set up (E-0008).
The two-household test seeds every table for two households and reads
each one against the other. lib/backup.ts writes a backup to
/app/data/sicherungen after changes (checked every five minutes, at
least every six hours, last 14 kept); an empty database offers it on
/einrichten for restore with the setup code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HUc2nv7rJVU2gp3Bgtha3q