This file describes how supabase seeding works.
Snaplet is a tool used to seed mostly PostgresSQL databases. Read through their documentation to understand better how it works here: https://snaplet-seed.netlify.app/seed/getting-started/quick-start
To initialize snaplet:
npx @snaplet/seed initTo sync snaplet (essentially generate snaplet models and docs from seed.config.ts):
Note: every time the config file is changed, this command has to be ran.
bun run db:resetOr if you need to run the commands separately:
npx supabase db reset
npx @snaplet/seed sync
npx tsx seed.ts > seed.sql
bun run format