New

5 demos, 10+ applications, 50+ blocks, 30+ pages & much more

Documentation

Browse and explore docs

Seed the Database

The project includes a seed script at prisma/seed-all.ts that loads sample data from data/data.json and inserts it into the database using idempotent upsert operations. Seeding order matters due to foreign key dependencies:

  1. Products
  2. Profiles
  3. Permissions
  4. Role Definitions
  5. Orders

Run the seed script with:

npx tsx prisma/seed-all.ts

Important: Profiles are linked to Supabase auth.users by UUID. Make sure the user accounts exist in Supabase Auth before seeding, or create them via the Supabase dashboard so the UUIDs match.