> For the complete documentation index, see [llms.txt](https://docs.whalesync.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.whalesync.com/sync/connectors/supabase/foreign-key-snippets.md).

# Foreign key snippets

SQL snippets for setting up Supabase foreign keys so Whalesync can sync linked records. Supabase runs on Postgres, so they live in the Postgres section.

See [foreign-key-snippets.md](https://docs.whalesync.com/sync/connectors/postgres/foreign-key-snippets.md "mention") in the Postgres section.
