Adding default values to primary keys
How to make your primary keys auto-generate values in Supabase
Click on the primary key in your table.
Click "Edit column"
Change the column type to uuid
Set the Default Value equal to
gen_random_uuid()
Make sure "Is Unique" is toggled on
Last updated
Was this helpful?