feat: empty boxes, ids for shipping pdfs
This commit is contained in:
@@ -46,9 +46,9 @@ class Box(BaseModel):
|
||||
__tablename__ = 'boxes'
|
||||
id: Mapped[int] = mapped_column(primary_key=True)
|
||||
|
||||
quantity: Mapped[int] = mapped_column()
|
||||
quantity: Mapped[int] = mapped_column(default=0)
|
||||
|
||||
product_id: Mapped[int] = mapped_column(ForeignKey('products.id'))
|
||||
product_id: Mapped[Optional[int]] = mapped_column(ForeignKey('products.id'), nullable=True)
|
||||
product: Mapped['Product'] = relationship(lazy='joined')
|
||||
|
||||
pallet_id: Mapped[Optional[int]] = mapped_column(ForeignKey('pallets.id'))
|
||||
|
||||
Reference in New Issue
Block a user