Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

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