ORM: Map data to objects. Operate the object to operate the database. Class (model) is mapped to table, attribute is mapped to field
Realize your own ideas:
- Define the parent class, realize mysql connection, encapsulate CURD, transaction
- All Models inherit from the parent class and define the table name