diff options
Diffstat (limited to 'api/schemas')
| -rw-r--r-- | api/schemas/location.py | 6 | ||||
| -rw-r--r-- | api/schemas/measures.py | 5 | ||||
| -rw-r--r-- | api/schemas/sensor.py | 6 | ||||
| -rw-r--r-- | api/schemas/station.py | 6 |
4 files changed, 23 insertions, 0 deletions
diff --git a/api/schemas/location.py b/api/schemas/location.py index e69de29..102e3d9 100644 --- a/api/schemas/location.py +++ b/api/schemas/location.py @@ -0,0 +1,6 @@ +from pydantic import BaseModel + +class PostLocation(BaseModel): + street: str + avenue: str + zip_code:str
\ No newline at end of file diff --git a/api/schemas/measures.py b/api/schemas/measures.py index e69de29..999a82c 100644 --- a/api/schemas/measures.py +++ b/api/schemas/measures.py @@ -0,0 +1,5 @@ +from pydantic import BaseModel + +class PostMeasure(BaseModel): + name: str + unit_code: str
\ No newline at end of file diff --git a/api/schemas/sensor.py b/api/schemas/sensor.py index e69de29..e038378 100644 --- a/api/schemas/sensor.py +++ b/api/schemas/sensor.py @@ -0,0 +1,6 @@ +from pydantic import BaseModel + +class PostSensor(BaseModel): + name: str + installation_date: int | None = None + station_id: int
\ No newline at end of file diff --git a/api/schemas/station.py b/api/schemas/station.py index e69de29..3e8dc10 100644 --- a/api/schemas/station.py +++ b/api/schemas/station.py @@ -0,0 +1,6 @@ +from pydantic import BaseModel + +class PostStation(BaseModel): + name: str + installation_date: int + location_id: int
\ No newline at end of file |
