feat: temp barcode templates
This commit is contained in:
@@ -31,3 +31,20 @@ class DealProduct(BaseModel):
|
||||
product = relationship('Product')
|
||||
|
||||
quantity = Column(Integer, nullable=False, comment='Кол-во продукта')
|
||||
|
||||
|
||||
class BarcodeTemplateAttributeLink(BaseModel):
|
||||
__tablename__ = 'barcode_template_attributes_links'
|
||||
barcode_template_id = Column(Integer,
|
||||
ForeignKey('barcode_templates.id'),
|
||||
nullable=False,
|
||||
comment='ID Шаблона ШК',
|
||||
primary_key=True)
|
||||
barcode_template = relationship('BarcodeTemplate', back_populates='attributes')
|
||||
|
||||
attribute_id = Column(Integer,
|
||||
ForeignKey('barcode_template_attributes.id'),
|
||||
nullable=False,
|
||||
comment='ID Атрибута',
|
||||
primary_key=True)
|
||||
attribute = relationship('BarcodeTemplateAttribute')
|
||||
|
||||
Reference in New Issue
Block a user