Commit graph

1 commit

Author SHA1 Message Date
cbbb3c743b feat(scripts): add seed_lightning_cafe.py — sats-priced demo restaurant
The canonical demo seed for the restaurant extension + webapp
bundle. Drops a "Lightning Cafe" restaurant at slug=lightning-cafe
with currency='sat', exercising every feature surface so it
doubles as a visual smoke-test fixture:

- Menu tree (depth 2: Drinks→{Coffee,Cold,Tea}, Food→{Breakfast,
  Lunch,Snacks})
- 19 items with descriptions, dietary tags, allergens, ingredients,
  calorie counts
- Featured items (is_featured=1) — Latte, Avocado Toast, Lightning
  Burger
- Sold-out item (is_available=0) — Daily Special
- Low-stock item (stock=3, low_stock_threshold=5) — Fresh OJ
- Multiple modifier groups per item showing all three patterns:
    required/one  (radio, e.g. Milk choice)
    required/many (limited multi, e.g. Burger extras max 4)
    optional/many (free multi, e.g. Avocado Toast toppings)
- Modifier price deltas in sats (+50 for oat milk, +200 for egg, …)

The /var/lib/lnbits/data path is in the auto-detect list so the
script Just Works on the standard NixOS lnbits service layout.

Usage:
  python3 scripts/seed_lightning_cafe.py --wallet <wallet_id> --force

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 23:21:41 +02:00