This tutorial will show you how you can quickly add a UUID trait, which you can then add to your models, so that they are using a UUID for their primary key/identifier.
Benchmarking the performance of using various UUID types as the primary key on database tables instead of an auto-incrementing integer.