feat: image upload on product

This commit is contained in:
2024-05-26 09:28:56 +03:00
parent 88679089b6
commit 8e7812fb66
4 changed files with 26 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ class Product(BaseModel):
additional_info = Column(String, nullable=True, comment='Дополнительное поле')
images = relationship('ProductImage',
back_populates='product',
lazy='selectin',
cascade="all, delete-orphan")