feat: Add Supabase configuration and migrations for MC Cars application

- Create Kong declarative configuration for routing and authentication.
- Implement initialization script to set up the database.
- Add SQL migration for initializing roles, schemas, and seeding vehicle data.
- Create leads and customers tables with appropriate policies and functions for CRM.
- Seed admin user and configure storage bucket with RLS policies.
This commit is contained in:
Lago
2026-04-17 17:50:57 +02:00
commit 61517879e1
23 changed files with 3673 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Fallback runtime config — overwritten by the nginx container entrypoint at
// boot with values from SUPABASE_URL / SUPABASE_ANON_KEY env vars. Only the
// anon key is ever exposed to the browser. The service_role key stays server-
// side (Supabase Studio / PostgREST container environment).
window.MCCARS_CONFIG = {
SUPABASE_URL: "http://localhost:54321",
SUPABASE_ANON_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0",
};