feat: product barcode images

This commit is contained in:
2025-10-21 11:10:08 +04:00
parent 90c0bae8f1
commit 83f3b55f49
6 changed files with 115 additions and 24 deletions

View File

@ -33,4 +33,4 @@ class ProductBarcodeImage(BaseModel):
)
product: Mapped["Product"] = relationship(back_populates="barcode_image")
filename: Mapped[str] = mapped_column()
image_url: Mapped[str] = mapped_column()

View File

@ -52,7 +52,6 @@ class Product(BaseModel, IdMixin, SoftDeleteMixin):
barcode_image: Mapped["ProductBarcodeImage"] = relationship(
back_populates="product",
lazy="joined",
uselist=False,
)