ORM Basics
Let's first introduce the basic concepts of Vona ORM:
Entity
: Defines the basic fields of an entityModel
: Defines the relationships between entities and provides methods and tools for operating the database. The methods provided by theModel
can automatically infer the required type structure based on the relationships of entitiesMigration and Changes
: Used for database schema changes and data initialization
These basic ORM concepts were explained in the introduction to the API
. See: