Prepare Specs UI for Windows review
This commit is contained in:
@@ -101,6 +101,7 @@ class SystemModule(Base, TimestampMixin):
|
||||
guardian_id = Column(Integer, ForeignKey('guardians.id', ondelete='CASCADE'), nullable=True)
|
||||
module_id = Column(Integer, ForeignKey('modules.id', ondelete='CASCADE'), nullable=False)
|
||||
quantity = Column(Integer, nullable=False)
|
||||
module = relationship("Module")
|
||||
__table_args__ = (
|
||||
UniqueConstraint('system_id', 'guardian_id', 'module_id', name='uq_system_module_guardian'),
|
||||
CheckConstraint('quantity > 0', name='check_module_quantity_positive'),
|
||||
@@ -196,6 +197,7 @@ class SpecificationItem(Base, TimestampMixin):
|
||||
module_id = Column(Integer, ForeignKey('modules.id', ondelete='RESTRICT'), nullable=False)
|
||||
quantity = Column(Integer, nullable=False)
|
||||
description = Column(Text)
|
||||
module = relationship("Module")
|
||||
|
||||
|
||||
class Vendor(Base, TimestampMixin):
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user