feat: product barcode images
This commit is contained in:
@ -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()
|
||||
|
||||
@ -52,7 +52,6 @@ class Product(BaseModel, IdMixin, SoftDeleteMixin):
|
||||
barcode_image: Mapped["ProductBarcodeImage"] = relationship(
|
||||
back_populates="product",
|
||||
lazy="joined",
|
||||
uselist=False,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user