Newer
Older
from typing import List
from pydantic import BaseModel
class Status(BaseModel):
message: str
class SensorBase(BaseModel):
id: int
name: str
type: str
class Config:
orm_mode = True
class SensorCreate(BaseModel):
name: str
type: str
class Sensor(BaseModel):
id: int
name: str
type: str
deviceId: int
class Config:
orm_mode = True