Skip to main content

Create a project

  1. Sign up at supabase.com
  2. Click New Project and choose a name (e.g. vantage-wealth)
  3. Pick a strong database password and save it — you’ll need it for migrations
  4. Choose a region close to you
From Settings → API, note:
  • Project URL — goes into SUPABASE_URL
  • anon public key — goes into SUPABASE_ANON_KEY (Flutter app)
  • service_role key — goes into SUPABASE_SERVICE_KEY (backend only, never expose publicly)

Run migrations

Install the Supabase CLI:
Link to your project and push all migrations:
This runs all 12 migrations in order, creating:

Row Level Security

All tables have RLS enabled. Every row is scoped to the authenticated user via auth.uid(). The backend uses the service role key (which bypasses RLS) only for admin operations like RAG ingestion.

Enable Google OAuth (optional)

  1. Go to Authentication → Providers → Google
  2. Enable Google provider
  3. Add your Google OAuth client ID and secret (from console.cloud.google.com)
  4. Add redirect URL: com.vantagewealth.app://callback

pgvector (for AI memory)

The RAG pipeline requires the pgvector extension. It’s enabled automatically by migration 005. Verify it’s active:
If not present, enable it in Supabase → Database → Extensions → search “vector”.