Skip to content

Commit

Permalink
renamed reference to image_id to file_asset_id
Browse files Browse the repository at this point in the history
  • Loading branch information
joeygrable94 committed Sep 30, 2023
1 parent 3f53502 commit 028eb4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/models/gcft_snap.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class GcftSnap(Base):
gcft_id: Mapped[UUID4] = mapped_column(
UUIDType(binary=False), ForeignKey("gcft.id"), nullable=False
)
image_id: Mapped[UUID4] = mapped_column(
UUIDType(binary=False), ForeignKey("file_asset.id"), nullable=False
file_asset_id: Mapped[UUID4] = mapped_column(
UUIDType(binary=False), ForeignKey("file_asset.id"), nullable=True, default=None
)
geocoord_id: Mapped[UUID4] = mapped_column(
UUIDType(binary=False), ForeignKey("geocoord.id"), nullable=False
Expand Down
4 changes: 2 additions & 2 deletions app/schemas/gcft_snap.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class GcftSnapBase(
snap_slug: str
altitude: int
gcft_id: UUID4
image_id: UUID4
geocoord_id: UUID4
file_asset_id: Optional[UUID4] = None


class GcftSnapCreate(GcftSnapBase):
Expand All @@ -40,8 +40,8 @@ class GcftSnapUpdate(
snap_name: Optional[str] = None
altitude: Optional[int] = None
gcft_id: Optional[UUID4] = None
image_id: Optional[UUID4] = None
geocoord_id: Optional[UUID4] = None
file_asset_id: Optional[UUID4] = None


class GcftSnapRead(GcftSnapACL, GcftSnapBase, BaseSchemaRead):
Expand Down

0 comments on commit 028eb4f

Please sign in to comment.