remodulation du projet en POO et changement de l'organisation des fichiers

This commit is contained in:
cedrick2711
2026-07-29 13:57:06 -04:00
parent 3feae80767
commit b69eaabbba
51 changed files with 970 additions and 873 deletions
+2 -2
View File
@@ -342,8 +342,8 @@ def create_app():
# Database Initialization
# =========================================================================
with app.app_context():
import app.models as models # noqa: F401 — registers all models with SQLAlchemy
from app.models import User
import app.models.models as models # noqa: F401 — registers all models with SQLAlchemy
from app.models.models import User
db.create_all()
# Seed database if empty