Now that we know the basics of Phalcon's ORM and ODM, we can create the database architecture and most of the models needed for our project. We will also create some CLI tasks in order to help us work faster. Because there is a large amount of code, when referring to some of the parts in Chapter 1, Getting Started with Phalcon, I will use the abbreviation CSC (check source code).
We will cover the following topics in the chapter:
The database architecture