Episode #363

UUID Primary Keys

Series: Server-side Swift with Vapor

13 minutes
Published on November 15, 2018

This video is only available to subscribers. Get access to this video and 584 others.

In this episode we look at customizing the table and columns that Fluent creates for us. In addition to customizing our column data types, we'll also have to lean on an extension of Postgres to generate UUID values for us. We'll see how to customize some of the column constraints to suit our needs, and then create a development route to test it all out.

This episode uses Vapor 3.0.8, Fluent postgresql-1.0.0.