early_start.py 629 B

12345678910111213141516171819202122232425262728293031
  1. from pydantic import BaseModel
  2. class EarlyStartDTRModelPathBase(BaseModel):
  3. project_id: str | None
  4. device_id: str | None
  5. summer_model_path: str | None
  6. winter_model_path: str | None
  7. class EarlyStartDTRModelPathCreate(EarlyStartDTRModelPathBase):
  8. pass
  9. class EarlyStartDTRModelPathUpdate(EarlyStartDTRModelPathBase):
  10. pass
  11. class EarlyStartDTRModelPathInDBBase(EarlyStartDTRModelPathBase):
  12. id: int | None
  13. class Config:
  14. orm_mode = True
  15. class EarlyStartDTRModelPath(EarlyStartDTRModelPathInDBBase):
  16. pass
  17. class EarlyStartDTRModelPathInDB(EarlyStartDTRModelPathInDBBase):
  18. pass