This guide explains how to populate your database with test data for development and testing.
- Run the dummy data script in your Supabase SQL Editor:
-- Copy and paste the contents of supabase-dummy-data.sql
-- Or run it via Supabase CLI:
supabase db execute -f supabase-dummy-data.sql- 3 test business user profiles
- Note: These use placeholder UUIDs. In production, profiles are created automatically via Supabase Auth.
- Münchner Elektro-Service - Premium Elektriker in München
- Bayern Sanitär & Heizung - Premium Plus Klempner
- Farbenreich Malerbetrieb - Basic Maler
- Holzwerkstatt München - Premium Schreiner
- Dach & Fassade Bayern - Basic Dachdecker
- Wärme & Energie München - Premium Heizungsbauer
- Bauwerk München GmbH - Premium Plus Bauunternehmen
- Nürnberg Elektro - Basic Elektriker in Nürnberg
- Augsburger Maler - Basic Maler in Augsburg
- Reviews for various listings with different ratings
- All set to 'approved' status for immediate visibility
- A few sample customer inquiries
- Different statuses (new, contacted)
The dummy data uses placeholder UUIDs for user profiles:
00000000-0000-0000-0000-00000000000100000000-0000-0000-0000-00000000000200000000-0000-0000-0000-000000000003
If you get errors about profiles not existing:
- Option 1: Create auth users in Supabase Dashboard first, then update the UUIDs in the script to match
- Option 2: Create profiles manually in the database that match these UUIDs
- Option 3: Modify the script to use existing profile IDs from your database
- All images use Unsplash placeholder URLs
- In production, upload real images to Supabase Storage
- The URLs will work for testing but may be slow
- Opening hours are stored as JSONB
- Format:
{"monday": "08:00-18:00", "tuesday": "08:00-18:00", ...} - The component handles various formats
With this dummy data, you can test:
✅ Search & Filters
- Search by location (München, Nürnberg, Augsburg)
- Filter by category
- Filter by rating
- Filter by verified status
✅ Listing Details
- View full listing information
- See images in lightbox gallery
- View Google Maps location
- See opening hours
- Submit contact form (leads)
✅ Reviews
- View existing reviews
- Submit new reviews (works without auth for testing)
✅ Different Subscription Tiers
- Basic listings
- Premium listings (with badge)
- Premium Plus listings
You can easily modify the dummy data:
- Add more listings: Copy a listing INSERT statement and modify the values
- Change locations: Update city, zip_code, latitude, longitude
- Add more reviews: Insert additional review records
- Modify categories: Use different category IDs from your categories table
- Make sure the test profiles exist first
- Or update the user_id values to match existing profiles
- Ensure categories exist (run the main schema first)
- Check that category slugs match your categories table
- Check that review status is 'approved'
- Verify the listing_id matches an existing listing
- Unsplash URLs should work, but may be slow
- Check your internet connection
- In production, use Supabase Storage URLs
After loading dummy data:
- Test the search functionality
- Browse listing detail pages
- Submit test leads via contact forms
- Submit test reviews
- Test all filter combinations