123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- from datetime import datetime
- from pydantic.main import BaseModel
- class BlowyFeedbackTimeBase(BaseModel):
- timestamp: datetime | None
- device_id: str | None
- class BlowyFeedbackTimeCreate(BlowyFeedbackTimeBase):
- timestamp: datetime
- device_id: str
- class BlowyFeedbackTimeUpdate(BlowyFeedbackTimeBase):
- timestamp: datetime
- device_id: str
- class BlowyFeedbackTimeInDBBase(BlowyFeedbackTimeBase):
- id: int
- class Config:
- orm_mode = True
- class BlowyFeedbackTime(BlowyFeedbackTimeInDBBase):
- pass
- class BlowyFeedbackTimeInDB(BlowyFeedbackTimeInDBBase):
- pass
- class HighSpeedTimeBase(BaseModel):
- timestamp: datetime | None
- device_id: str | None
- class HighSpeedTimeCreate(HighSpeedTimeBase):
- timestamp: datetime
- device_id: str
- class HighSpeedTimeUpdate(HighSpeedTimeBase):
- timestamp: datetime
- device_id: str
- class HighSpeedTimeInDBBase(HighSpeedTimeBase):
- id: int
- class Config:
- orm_mode = True
- class HighSpeedTime(HighSpeedTimeInDBBase):
- pass
- class HighSpeedTimeInDB(HighSpeedTimeInDBBase):
- pass
|