Entities should inherit from the base class of the Database object:

  1. class MyEntity(db.Entity):
  2. 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.