Active Record pattern
Topics: Software architecture
The Active Record pattern maps database tables and rows to application classes and their instances.
This pattern was named by Martin Fowler in ”Patterns of Enterprise Software Architecture”. The basic idea behind this pattern is that every table in a database has a corresponding class in the application code. Each instance of the class represents one row of data in the related table.