feat: temp barcode templates
This commit is contained in:
		@@ -7,8 +7,8 @@ from models import BaseModel
 | 
			
		||||
class BarcodeTemplateAttribute(BaseModel):
 | 
			
		||||
    __tablename__ = 'barcode_template_attributes'
 | 
			
		||||
    id = Column(Integer, autoincrement=True, primary_key=True, index=True)
 | 
			
		||||
    name = Column(String, nullable=False, index=True, comment='Название атрибута')
 | 
			
		||||
    label = Column(String, nullable=False, index=True, comment='Метка атрибута')
 | 
			
		||||
    key = Column(String, nullable=False, index=True, comment='Ключ атрибута')
 | 
			
		||||
    name = Column(String, nullable=False, index=True, comment='Метка атрибута')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class BarcodeTemplate(BaseModel):
 | 
			
		||||
@@ -20,3 +20,7 @@ class BarcodeTemplate(BaseModel):
 | 
			
		||||
                              cascade="all, delete-orphan",
 | 
			
		||||
                              lazy='joined')
 | 
			
		||||
    is_default = Column(Boolean, nullable=False, default=False, comment='По умолчанию')
 | 
			
		||||
 | 
			
		||||
    # size
 | 
			
		||||
    width = Column(Integer, nullable=False, comment='Ширина в мм')
 | 
			
		||||
    height = Column(Integer, nullable=False, comment='Высота в мм')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user