feat: temp barcode templates

This commit is contained in:
2024-05-03 17:07:36 +03:00
parent 4f62bb2468
commit 99f0308a8a
10 changed files with 341 additions and 1 deletions

View File

@@ -18,6 +18,9 @@ class Product(BaseModel):
client = relationship('Client', back_populates='products')
barcodes = relationship('ProductBarcode', back_populates='product', cascade="all, delete-orphan")
barcode_template_id = Column(Integer, ForeignKey('barcode_templates.id'), nullable=True)
barcode_template = relationship('BarcodeTemplate')
class ProductBarcode(BaseModel):
__tablename__ = 'product_barcodes'