The Odoo development guidelines state that the Python files for models should be placed inside a models subdirectory, and we should have one file for each model. So, we will create a models/library_book.py file in the main directory of the library_app module.
Before that, we need to let Python know that the models directory should be used (imported in Python jargon). To do that, edit the module's main __init__.py file, like this:
from . ...