- Go to https://supabase.com → Create new project
- Name it
andor-learning - Choose a strong database password (save it!)
- Wait for project to provision (~2 minutes)
Open Supabase SQL Editor and run each file:
schema.sql→ Creates all tablesindexes.sql→ Adds performance indexesrls.sql→ Adds security policiesfunctions.sql→ Adds triggers and functionsseed.sql→ Adds initial recommendations
Go to Project Settings → API:
- Copy
Project URL→ this is your SUPABASE_URL - Copy
anon publickey → this is your SUPABASE_ANON_KEY
Users add these in Andor settings panel (optional).
Or you can hardcode them for the public shared instance in src/learning/SupabaseClient.ts.
- Row Level Security is enabled on all tables
- Anonymous users can only INSERT, never SELECT individual rows
- model_performance and model_recommendations are public (aggregate only)
- No personal data, no code, no file paths are ever stored
- Session IDs rotate every 7 days — no long-term tracking possible
Run this periodically (or set up a Supabase cron job):
SELECT refresh_model_recommendations();