To interact with a database (at least for what is being discussed in this chapter), we need a template, which will be the equivalent of the fields in the database tables.
The process is very simple. Let's create an object for each table in our database; regardless of whether it is SQL Server or PostgreSQL, we will only have one object per entity:
- users
- products
- customers