Explorar el Código

amend space schema

highing666 hace 3 años
padre
commit
2f34c4fe26
Se han modificado 1 ficheros con 8 adiciones y 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