Are you writing any code that queries this model or are you just letting the framework handle that? We'd need to see the actual code you are using to query the database.
If you are not writing code that looks like 'session.query(model.AccessKeys)` yourself, then SqlAlchemy queries are being generated by a package you have installed, which could be:
* flask
* flask-sqlalchemy
* some other plugin for flask/sqlalchemy
If that's the case, the flask community is where you'll have to ask this question. They use IRC by preference -
https://flask.palletsprojects.com/en/1.1.x/becomingbig/#discuss-with-the-community