📄 SKILL.md

← Vault

name: supabase-sync-external-ids-to-local

description: Map external system IDs to local Supabase foreign keys when importing data — solves "names not showing" after sync


Sync External IDs to Local Supabase References

When to Use

When importing data from an external JSON/source into Supabase, and the external data has IDs pointing to people/entities, but the local Supabase database has DIFFERENT IDs for the same entities (in a team_members or similar table). The frontend expects local IDs, but the imported data has external IDs.

Problem Pattern