MCPcopy Create free account
hub / github.com/PacktPublishing/Full-Stack-FastAPI-React-and-MongoDB / CarBase

Class CarBase

chapter9/backend/models.py:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29class CarBase(MongoBaseModel):
30
31 brand: str = Field(..., min_length=2)
32 make: str = Field(..., min_length=1)
33 year: int = Field(..., gt=1975, lt=2023)
34 price: int = Field(...)
35 km: int = Field(...)
36 cm3: int = Field(..., gt=400, lt=8000)

Callers 2

importScript.pyFile · 0.90
list_all_carsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected