Add additional ORM relations and thumbs in API responses

This commit is contained in:
Oliver Traber 2025-05-25 16:49:50 +00:00
parent 791a79249c
commit 4272f2878e
Signed by: Bluemedia
GPG key ID: C0674B105057136C
9 changed files with 37 additions and 6 deletions

View file

@ -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