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

24 lines
484 B

  1. from pydantic import BaseModel, Field
  2. from datetime import datetime
  3. from schemas.vehicle import OutputVehicle
  4. class CreateAuction(BaseModel):
  5. initialPrice: int = Field(...)
  6. minimalBet: int = Field(...)
  7. carId: int = Field(...)
  8. dateStart: datetime
  9. dateEnd: datetime
  10. class ShowAuction(BaseModel):
  11. Id: int
  12. initialPrice: int
  13. minimalBet: int
  14. car: OutputVehicle
  15. dateStart: datetime
  16. dateEnd: datetime
  17. class Config:
  18. orm_mode = True