from database import SessionLocal
from models.project import Project

db = SessionLocal()
p = db.query(Project).filter(Project.id == 1).first()
if p and p.custom_task_statuses:
    statuses = p.custom_task_statuses
    print(f"Total custom statuses: {len(statuses)}")
    print("\nLast 5 statuses:")
    for s in statuses[-5:]:
        print(f"  • {s['name']} ({s['id']}) - {s['color']}")
else:
    print("No custom statuses found")
db.close()
