schemas.py 233 B

1234567891011
  1. from pydantic import BaseModel
  2. class CompanySchema(BaseModel):
  3. id: int
  4. hubspot_id: str
  5. name: str
  6. domain: str | None
  7. class Config:
  8. from_attributes = True # Ensures SQLAlchemy model converts to Pydantic