Ecto and Binary IDs Generated By PostgreSQL
As well as having Ecto use UUIDs as primary keys it is also possible for Ecto to configure PostgreSQL so that it generate the UUIDs:
http://www.swwritings.com/post/2019-01-11-ecto-and-binary-ids-generated-by-postgresql
Read next Send smart emails with ExCampaignMonitor