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()
gen_random_uuid()
Make sure "Is Unique" is toggled on
Last updated 1 year ago
Was this helpful?