#!/usr/bin/env python3
"""
CLI script to seed yield affiliate partners.

Run from project root:
    python -m scripts.seed_yield_partners
    
Or with poetry/venv:
    cd backend && python scripts/seed_yield_partners.py
"""

import asyncio
import sys
import os

# Add parent directory to path for imports
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from app.database import AsyncSessionLocal
from app.seeds.yield_partners import seed_partners


async def main():
    print("🌱 Seeding Yield affiliate partners...")
    
    async with AsyncSessionLocal() as db:
        count = await seed_partners(db)
        print(f"✅ Successfully seeded {count} affiliate partners")


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

