If you see "No services available. Please add services to the database" when creating a contract, you need to populate the services table.
-
Open Supabase Dashboard
- Go to https://supabase.com/dashboard
- Select your project
-
Open SQL Editor
- Click "SQL Editor" in the left sidebar
- Click "New query"
-
Run the Seed Script
- Open the file:
lib/supabase/seed-services.sql - Copy and paste the entire SQL into the editor
- Click "Run" or press
Ctrl+Enter(Windows) /Cmd+Enter(Mac)
- Open the file:
psql $DATABASE_URL -f lib/supabase/seed-services.sqlThe seed script adds:
- Full Property Management (Featured)
- Self-management Support
- Co-hosting Services (Featured)
- Short-term Rental Management (Featured)
- Long-term Property Management
- Hybrid Management
- On-demand Services
- Automated Management
- Regular Maintenance (Featured)
- Emergency Repairs
- Preventive Maintenance
- Handyman Services
- Tenant Screening (Featured)
- Lease Preparation
- Property Marketing
- Tenant Placement (Featured)
After running the script, verify in Supabase Dashboard:
- Go to Table Editor →
servicestable - You should see 16 services total
Or run this query:
SELECT COUNT(*) FROM public.services;
-- Should return 16You can add, modify, or delete services directly in Supabase:
- Go to Table Editor →
servicestable - Click "Insert row" to add new services
- Or edit existing services
Service Categories:
property_management- For property management contractsmaintenance- For maintenance service contractsleasing- For leasing service contractsfinancial- Not used for contracts (filtered out)
Once services are added:
- Refresh the contract creation page
- The "Contract Type (Service)" dropdown will show all available services
- You can select a service to create a contract for that service type