Storage bucket
Confirm that the public bucket construction-photos exists in Storage.
INSERT INTO storage.buckets (id, name, public)
VALUES ('construction-photos', 'construction-photos', true);
Deployment tab
Follow this checklist to deploy tables, policies, triggers, storage and test data for ConstructManager.
Open Supabase, choose New project, set a strong database password and select the closest region.
Go to the SQL files tab, open deploy.sql, copy the entire content and run it in Supabase SQL Editor. This creates all tables, security policies, storage rules and triggers.
Go to Authentication → Providers and enable Email. Add Site URL and Redirect URLs if OAuth is used.
In your Supabase dashboard go to Project Settings → Data API. Copy Project URL and anon public key, then paste them in the ConstructManager settings screen.
https://ejyesfvyhdguhgbuvrzv.supabase.cohttps://ejyesfvyhdguhgbuvrzv.supabase.co — omit the /rest/v1 suffix, the client adds it automatically.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6In...This single file contains the complete database. Open Supabase SQL Editor, create a new query, paste the entire content below and press Run.
Confirm that the public bucket construction-photos exists in Storage.
INSERT INTO storage.buckets (id, name, public)
VALUES ('construction-photos', 'construction-photos', true);
Enable realtime for constructions, budgets and schedules if live synchronization is required.
alter publication supabase_realtime add table constructions;
alter publication supabase_realtime add table budgets;
alter publication supabase_realtime add table schedules;
SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'public';
SELECT trigger_name, event_object_table
FROM information_schema.triggers
WHERE trigger_schema = 'public';