25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
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