from app.factories import Factory, random_phone, random_string from app.models.tenant import Tenant class TenantFactory(Factory): model = Tenant def definition(self) -> dict: slug = random_string(10) return { "id": None, "name": f"Tenant {slug.title()}", "slug": slug, "business_type_id": None, "phone": random_phone(), "address": None, "email": None, "status": "ACTIVE", }