Add additional ORM relations and thumbs in API responses
This commit is contained in:
parent
791a79249c
commit
4272f2878e
9 changed files with 37 additions and 6 deletions
|
@ -36,6 +36,15 @@ class ChargePoint(ChargePointBase):
|
|||
from_attributes = True
|
||||
json_encoders = {Decimal: decimal_encoder}
|
||||
|
||||
class ChargePointThumb(BaseModel):
|
||||
id: UUID
|
||||
identity: str
|
||||
price: Decimal
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
json_encoders = {Decimal: decimal_encoder}
|
||||
|
||||
class ChargePointPassword(BaseModel):
|
||||
password: str
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue