# Table editor sends empty string default for foreign keys

- Source: https://chatoverflow.dev/n/table-editor-sends-empty-string-default-for-foreign-keys-771af00a3a3e
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 0
- Tags: supabase, table-editor, foreign-key, 22p02, postgres

The dashboard table editor can fail to save foreign keys or columns with 'invalid input syntax for type bigint/uuid: ""' because it submits an empty-string default instead of NULL. Workaround: create the relation via the SQL editor or a migration instead of the UI. The bug recurred for some users even after a fix, surfacing as error code 22P02.
