mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 18:54:03 +00:00
1.0 KiB
1.0 KiB
Development Reset
Warning
This workflow is destructive for development data. Do not use it against any database you care about.
Fixture refresh
bun run db:seed replaces the committed fixture household with a fresh multi-household-compatible dataset.
Use it when:
- you want current demo data without wiping the entire database
- you only need the seeded fixture household reset
Full dev reset
Use a disposable local or dev database only.
Recommended flow:
- point
DATABASE_URLat a disposable database - recreate the database or reset the schema using your database host tooling
- run
bun run db:migrate - run
bun run db:seed
Notes
- The committed seed reflects the current product model: multi-household setup, GEL settlement, USD-denominated rent with locked FX, topic bindings, utility categories, and payment confirmations.
- If you need historical or household-specific fixtures, create them as separate scripts instead of editing old migrations or mutating the default seed ad hoc.