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.

auction.py 484 B

1 vuosi sitten
1234567891011121314151617181920212223
  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