feat(models): add basic database structure

This commit is contained in:
2025-10-09 14:33:07 +02:00
parent 991c070918
commit 95996d22f8
7 changed files with 129 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ if not DATABASE_URL:
# Load all models to register them
from app.models.user import User
from app.models.transaction import Transaction
from app.models.categories import Category
ssl_enabled = os.getenv("MARIADB_HOST", "localhost") != "localhost"
connect_args = {"ssl": {"ssl": True}} if ssl_enabled else {}