選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

24 行
735 B

  1. from pydantic import BaseModel, Field
  2. from datetime import datetime
  3. from schemas.user import ShowDriver
  4. class CreateFuelingTask(BaseModel):
  5. VehicleId: int = Field(...)
  6. Description: str = Field(...)
  7. Date: datetime = Field(...)
  8. Cost: int = Field(...)
  9. FuelRefilled: int = Field(...)
  10. GasStationName: str = Field(...)
  11. ImageBefore: str = Field(...)
  12. ImageAfter: str = Field(...)
  13. class OutputFuelingTask(BaseModel):
  14. VehicleId: int = Field(...)
  15. Description: str = Field(...)
  16. Date: datetime = Field(...)
  17. Cost: int = Field(...)
  18. FuelRefilled: int = Field(...)
  19. GasStationName: str = Field(...)
  20. ImageBefore: str = Field(...)
  21. ImageAfter: str = Field(...)
  22. Driver: ShowDriver | None