18 lines
391 B
Python
18 lines
391 B
Python
|
from pydantic import BaseModel, EmailStr
|
||
|
from .db import ProfileDB, JdeOfficeDB
|
||
|
|
||
|
|
||
|
class ProfileResponse(ProfileDB):
|
||
|
email: EmailStr | None
|
||
|
|
||
|
|
||
|
class ExtendedResponse(BaseModel):
|
||
|
features: str | None
|
||
|
contact_person: ProfileResponse | None
|
||
|
person_count: int | None
|
||
|
rating: int | None
|
||
|
|
||
|
|
||
|
class JdeOfficeDetailResponse(JdeOfficeDB):
|
||
|
changeable_info: ExtendedResponse | None
|