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.

FALLBACK_CACHE
PostgreSQL Database Schema (8 Tables)
Table NameRow Level Security (RLS)Functional Purpose
profilesEnabledLinked to Supabase Auth users
snakesEnabledPrimary taxonomic and physiological registry
speciesEnabledFive major ophidian taxonomic families
habitatsEnabledGlobal biomes & geographical environments
snake_habitatsEnabledJunction table for many-to-many associations
snake_imagesEnabledHigh-definition photo records
snake_factsEnabledAdaptation & venom metrics
favoritesEnabledUser-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