Ensures that the given database model (`DeclarativeMeta`) has a `query` property through
        which the user can easily query the corresponding database table.

        Database object models derived from Flask-SQLAlchemy's `database.Model` have this property
        set up by default, but when using SQLAlchemy, this may not be the case. In this method this
        problem we fix.

        Argumentss:
            model (DeclarativeMeta): The database model object whose `query` property should be
                                     set up if it's not set up already.
            session (Session): The session to use to set up the `query` property on `model`.

def set_query_on_table_metaclass(model: object, session: Session):
        """
        Ensures that the given database model (`DeclarativeMeta`) has a `query` property through
        which the user can easily query the corresponding database table.

        Database object models derived from Flask-SQLAlchemy's `database.Model` have this property
        set up by default, but when using SQLAlchemy, this may not be the case. In this method this
        problem we fix.

        Argumentss:
            model (DeclarativeMeta): The database model object whose `query` property should be
                                     set up if it's not set up already.
            session (Session): The session to use to set up the `query` property on `model`.
        """
        if not hasattr(model, "query"):
            model.query = session.query(model)