import asyncio
from sqlalchemy.ext.asyncio import AsyncSession
from app.db.session import AsyncSessionLocal
from app.models.vehicle_catalog import VehicleCategory, VehicleMake

async def quick_seed():
    async with AsyncSessionLocal() as db:
        print("🌱 Alapkategóriák és márkák feltöltése...")
        
        # 1. Kategóriák
        cats = [VehicleCategory(name_key="CAR"), VehicleCategory(name_key="MOTORCYCLE"), VehicleCategory(name_key="LCV")]
        db.add_all(cats)
        
        # 2. Top Márkák (induláshoz)
        makes = ["Audi", "BMW", "Honda", "Skoda", "Volkswagen", "Toyota", "Ford", "Yamaha", "Suzuki"]
        for m_name in makes:
            db.add(VehicleMake(name=m_name))
            
        await db.commit()
        print("✅ Kész! Most már van mihez modellt rendelni.")

if __name__ == "__main__":
    asyncio.run(quick_seed())