feat: cards, attributes and modules
This commit is contained in:
@@ -35,14 +35,17 @@ class BarcodeTemplate(BaseModel):
|
||||
__tablename__ = 'barcode_templates'
|
||||
id = Column(Integer, autoincrement=True, primary_key=True, index=True)
|
||||
name = Column(String, nullable=False, index=True, comment='Название шаблона')
|
||||
attributes = relationship('BarcodeTemplateAttribute',
|
||||
secondary=barcode_template_attribute_link,
|
||||
lazy='selectin'
|
||||
)
|
||||
additional_attributes = relationship('BarcodeTemplateAdditionalField',
|
||||
lazy='selectin',
|
||||
back_populates='barcode_template',
|
||||
cascade="all, delete")
|
||||
attributes = relationship(
|
||||
'BarcodeTemplateAttribute',
|
||||
secondary=barcode_template_attribute_link,
|
||||
lazy='selectin',
|
||||
)
|
||||
additional_attributes = relationship(
|
||||
'BarcodeTemplateAdditionalField',
|
||||
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='По умолчанию')
|
||||
|
||||
Reference in New Issue
Block a user