We have a branch called
recipes/uuidthat converts all "ids" to use the UUID6 type. We chose UUID6 as it allows for ordering due to its sequential nature.
Note: this has been rebased on the latest
mainbranch and might not work properly on v1.3.0 and below. However, you should be able to work out how to apply it based on the diffs.
git clone https://github.com/petalframework/petal_pro.git
git checkout recipes/uuid
Once applied, you might need to run
mix ecto.resetif you had already migrated the database previously.