from app.factories import Factory, random_email, random_string from app.models.user import User from app.security import hash_password class UserFactory(Factory): model = User def definition(self) -> dict: return { "id": None, "email": random_email(), "username": random_string(12), "password": hash_password("password123"), "email_verified_at": None, "tenant_id": None, "status": "ACTIVE", }