Defining entities which are related to the Database object
Entities should inherit from the base class of the Database
object:
class MyEntity(db.Entity):
attr1 = Required(str)
We’ll talk about entities definition in detail in the next chapter. Now, let’s see the next step in mapping entities to a database.