Hi,
Welcome to the forum
If you want or need UUID don’t generate it as a primary key instead use it like this Generate UUID fields in Phoenix with Postgresql - DEV Community
Also if you want to understand the reason why you shouldn’t use uuid as a primary key you can read this thread where i asked a lot of questions regarding this topic Best way to generate an UUID for the id field?
Hope it helps


















