24 lines
427 B
Python
24 lines
427 B
Python
|
import datetime
|
||
|
from typing import Optional, List
|
||
|
|
||
|
from pydantic import BaseModel
|
||
|
|
||
|
|
||
|
class PhoneTime(BaseModel):
|
||
|
start: datetime.datetime
|
||
|
end: datetime.datetime
|
||
|
|
||
|
|
||
|
class DoctorInformation(BaseModel):
|
||
|
name: str
|
||
|
tel: str
|
||
|
fax: Optional[str] = None
|
||
|
anrede: str
|
||
|
email: Optional[str] = None
|
||
|
distance: int
|
||
|
strasse: str
|
||
|
hausnummer: str
|
||
|
plz: str
|
||
|
ort: str
|
||
|
telefonzeiten: List[PhoneTime]
|