Categories
Building In Public iOS Development

Building in Public – Expense Tracker 05: Creating Models with Vapor and Fluent

Iā€™m building an expense tracker app, and live streaming the whole process! This blog series is a written form of each livestream.

See all the previous posts.

I started this steam by adding a property that I forgot during the last stream, thankfully someone pointed this out to me afterwards.

Next I created the Fluent models.

Models represent data stored in tables or collections in your database. Models have one or more fields that store codable values. All models have a unique identifier. Property wrappers are used to denote identifiers, fields, and relations.

Vapor docs – Fluent

Models:

  • Account
  • Category
  • Expense
  • Income

These are the models that represent the data in the database, in the next stream, I’ll create some API routes to begin testing if everything works!

Livestream

05 Expense Tracker – Creating Models with Vapor | Building in Public Livestream | Mikaela Caron