Episode #576

Create Fluent Models with Parent/Child Relationships

Series: Build a Vapor Backend

18 minutes
Published on May 13, 2024

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

Now that we have our database setup, we can create our models. We'll start by examining the Model and Content protocols, then implement the necessary properties decorated with Fluent's property wrappers to denote primary keys, fields, and foreign keys.

This episode uses Swift 5.10, Xcode 15.3.