Backend Architecture & Security
SUPABASE & STORAGE AUDIT
Local Fallback Engine Active (Seed Ready)
Populate NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY in .env.local to link live cloud.
PostgreSQL Database Schema (8 Tables)
| Table Name | Row Level Security (RLS) | Functional Purpose |
|---|---|---|
| profiles | Enabled | Linked to Supabase Auth users |
| snakes | Enabled | Primary taxonomic and physiological registry |
| species | Enabled | Five major ophidian taxonomic families |
| habitats | Enabled | Global biomes & geographical environments |
| snake_habitats | Enabled | Junction table for many-to-many associations |
| snake_images | Enabled | High-definition photo records |
| snake_facts | Enabled | Adaptation & venom metrics |
| favorites | Enabled | User-specific bookmark relations |
Supabase Storage Buckets (4 Buckets)
snake-images
Serpent photography
Public: YesRLS: Active
snake-models
3D GLTF / GLB meshes
Public: YesRLS: Active
habitat-media
Biome panoramas
Public: YesRLS: Active
avatars
Explorer profiles
Public: YesRLS: Active