You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
1234567891011121314151617181920212223
  1. from pydantic import BaseModel, Field
  2. from datetime import datetime
  3. from typing import List, Optional
  4. from schemas.carpart import ShowCarPart
  5. from schemas.user import ShowUser
  6. from schemas.vehicle import OutputVehicle
  7. class CreateMaintenanceJob(BaseModel):
  8. Description: str = Field(...)
  9. VehicleID: int = Field(...)
  10. Date: datetime = Field(...)
  11. class OutputMaintenanceJob(BaseModel):
  12. Id: int
  13. Description: str
  14. Date: datetime
  15. CarPartsList: Optional[List[ShowCarPart]]
  16. TotalCost: int
  17. Vehicle: OutputVehicle
  18. FinishedBy: Optional[ShowUser]
  19. Status: str