The Odoo development guidelines state that the Python files for models should be placed inside a models subdirectory. So, we will create a models/todo_task_model.py file in the main directory of the todo_app module.
Before that, we need to let Python know that the models directory should be used (imported). To do that, edit the module's main __init__.py file like this:
from . import models
We also need to add a models/__init__.py file, ...