Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/models/smartphone.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class Smartphone(SQLModel, table=True):
# Assets
image_url: str | None = None
images: list[str] = Field(default_factory=list, sa_column=Column(JSON))
image_license: str | None = None
image_attribution: str | None = None

# 3D — {url, version, bytes, sha256, license, attribution, parts[], colors[]}
model_3d: dict[str, Any] | None = Field(default=None, sa_column=Column(JSON))
Expand Down
2 changes: 2 additions & 0 deletions app/schemas/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ def smartphone_read(
connectivity=phone.connectivity,
image_url=phone.image_url,
images=phone.images,
image_license=phone.image_license,
image_attribution=phone.image_attribution,
model_3d=phone.model_3d,
body=phone.body,
score=phone_score_read(scores),
Expand Down
2 changes: 2 additions & 0 deletions app/schemas/smartphone.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class SmartphoneRead(BaseModel):
connectivity: dict[str, Any]
image_url: str | None = None
images: list[str] = []
image_license: str | None = None
image_attribution: str | None = None
model_3d: dict[str, Any] | None = None
body: dict[str, Any] | None = None
score: ScoreRead
Expand Down
Loading