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

# Adding default values to primary keys

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

   <figure><img src="/files/xKdevyRLbcZPasXgP16b" alt=""><figcaption></figcaption></figure>
3. Change the column type to uuid
4. Set the Default Value equal to <mark style="color:red;">`gen_random_uuid()`</mark>

   <figure><img src="/files/NZaI6l3HPc9xKqOmUVRv" alt=""><figcaption></figcaption></figure>
5. Make sure "Is Unique" is toggled on

   <figure><img src="/files/YyQeF9vUmHx0UltiSvbW" alt=""><figcaption></figcaption></figure>
