kitchen_settings has a FK to kitchens.id — on a fresh kitchen_db the kitchens table is empty, so any restore attempt fails with a FK violation. Idempotent INSERT ON CONFLICT DO NOTHING runs after create_all on every boot. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| migrations | ||
| models | ||
| ocr | ||
| services | ||
| auth.py | ||
| database.py | ||
| Dockerfile | ||
| main.py | ||
| requirements.txt | ||
| scheduler.py | ||