feat: attrs on product
This commit is contained in:
@@ -43,8 +43,8 @@ class BarcodeTemplate(BaseModel):
|
||||
lazy='selectin',
|
||||
back_populates='barcode_template',
|
||||
cascade="all, delete")
|
||||
additional_field = Column(String, nullable=True, comment='Дополнительное поле')
|
||||
|
||||
is_default = Column(Boolean, nullable=False, default=False, comment='По умолчанию')
|
||||
|
||||
size_id = Column(Integer, ForeignKey('barcode_template_sizes.id'), nullable=False)
|
||||
size = relationship('BarcodeTemplateSize', lazy='joined')
|
||||
|
||||
@@ -22,6 +22,7 @@ class Product(BaseModel):
|
||||
brand = Column(String, nullable=True, comment='Бренд')
|
||||
color = Column(String, nullable=True, comment='Цвет')
|
||||
composition = Column(String, nullable=True, comment='Состав')
|
||||
size = Column(String, nullable=True, comment='Размер')
|
||||
|
||||
|
||||
class ProductBarcode(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user