<filename>src/server/database/connect_to_database.py
from tortoise import Tortoise


async def connectToDatabase():
    await Tortoise.init(
        db_url="sqlite://db.sqlite3", modules={"models": ["models.user"]}
    )

<filename>src/server/database/connect_to_database.py
from tortoise import Tortoise


async def connectToDatabase():
    await Tortoise.init(
        db_url="sqlite://db.sqlite3", modules={"models": ["models.user"]}
    )
