> 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/adding-default-values-to-primary-keys.md).

# Adding default values to primary keys

Make a Supabase primary key auto-generate values. Edit the column, set its type to uuid and its default value to gen_random_uuid(), and turn on Is Unique.

1. Click on the primary key in your table.
2.  Click "Edit column"

    ![](https://docs.whalesync.com/_astro/1.BILT8kHO_DLYsf.webp)
3. Change the column type to uuid
4.  Set the Default Value equal to <mark style="color:red;">`gen_random_uuid()`</mark>

    ![](https://docs.whalesync.com/_astro/2.CNYE7xuZ_Z2uimjr.webp)
5.  Make sure "Is Unique" is toggled on

    ![](https://docs.whalesync.com/_astro/3.Ch40-4NS_Z24ri1B.webp)
