database table or view, encapsulates the database access, and adds domain logic on that data. Martin Fowler, Patterns of Enterprise Application Architecture
mapping (ORM) pattern of the same name • Automated mapping between classes and tables, attributes and columns • Associations between objects defined by simple class methods
| Type | Null | +--------+--------------+------+-- | id | int(11) | NO | | title | varchar(255) | YES | | body | text | YES | +--------+--------------+------+--