Python 3.10pip3 install -r requirements.txt
aerich init -t utils.settings.TORTOISE_ORM
aerich init-dbTOKEN = your bot tokenpython3 main.pypython3 -m black .python3 -m pytest ./tests.pyMigrate changes:
aerich migrate --name <name>Be aware that some field parameters will not be read correctly, for this purpose edit the file in /migrations and add for example DEFAULT [] for default values (tortoise.fields.JSONfield).
Apply changes:
aerich upgrade