import sys
from sqlalchemy.orm import configure_mappers

# Az összes modell importálása
from app.models.identity import *
from app.models.vehicle import *
from app.models.marketplace import *
# from app.models.fleet import *  # Nincs fleet modul
from app.models.gamification import *
from app.models.system import *

def check_all_mappers():
    try:
        configure_mappers()
        print("\n✅ [SUCCESS] Minden SQLAlchemy Mapper és Relationship 100%-ig hibátlanül felépült!")
        sys.exit(0)
    except Exception as e:
        print(f"\n❌ [ERROR] Mapper inicializálási hiba:\n{e}")
        sys.exit(1)

if __name__ == "__main__":
    check_all_mappers()