Default UUID as text type
What is the recommended way to set the id (primary key) field as a text type with a default value of uuid
4 Replies
Depends on your driver and dialect
I guess dialect only
pg
i'd prefer to use uuid type but will be best to migrate one thing at a time
so need an interim solution
I think that you have defaulRandom in Pg text and varchar, you might want to look at the docs
cool stuff