As we have discussed in Chapter 2, Understanding Server-Side Swift, we are dealing with two types of models: database and input/output (I/O) models. We will now create both models and learn how to connect them to Fluent. This section will cover:
- Database models
- Connecting models to Fluent
- I/O models
Let's start with the database models.