Creating the House and HouseChecker Models

Learn how to create models in Flask.

Creating the House model

In our Core app, the House model will have the following attributes:

  • A name for identification of each house.

  • An image data of each house for visual recognition.

  • A description of each house.

First, we'll import the dataclass from dataclasses, like so:

Get hands-on with 1200+ tech skills courses.