Explorar o código

amend space schema

highing666 %!s(int64=3) %!d(string=hai) anos
pai
achega
2f34c4fe26
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      app/schemas/space.py

+ 8 - 0
app/schemas/space.py

@@ -15,3 +15,11 @@ class Space(BaseModel):
     vav_default_weight: Optional[float]
     vav_temporary_weight: Optional[float]
     vav_temporary_update_time: Optional[str]
+
+
+class SpaceBase(BaseModel):
+    realtime_temperature: float
+
+
+class SpaceATFU(SpaceBase):
+    realtime_co2: float