Models

In ORM-based systems, models define structured representations of persisted entities and their relationships.

They provide a shared contract between application logic and database structure, including relation mapping, defaults, and lifecycle hooks.

Model design decisions influence query efficiency, migration complexity, and long-term maintainability, so they should be reviewed together with schema and indexing strategy.

See also: ORM, Schemas, API