theraPy/arztapi/DoctorInformation.py

25 lines
453 B
Python
Raw Normal View History

2024-08-26 21:05:34 +02:00
import datetime
from typing import Optional, List
from pydantic import BaseModel
class PhoneTime(BaseModel):
start: datetime.datetime
end: datetime.datetime
class DoctorInformation(BaseModel):
2024-08-28 10:08:46 +02:00
nr: Optional[int] = 0
2024-08-26 21:05:34 +02:00
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]