Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

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