v1.3 - client and admin scaffolding
This commit is contained in:
@@ -32,6 +32,7 @@ class MixIngredient(Base):
|
||||
__table_args__ = (UniqueConstraint("mix_id", "raw_material_id", name="uq_mix_ingredient"),)
|
||||
|
||||
id: Mapped[int] = mapped_column(primary_key=True)
|
||||
tenant_id: Mapped[str] = mapped_column(String(64), default="default")
|
||||
mix_id: Mapped[int] = mapped_column(ForeignKey("mixes.id"), index=True)
|
||||
raw_material_id: Mapped[int] = mapped_column(ForeignKey("raw_materials.id"), index=True)
|
||||
quantity_kg: Mapped[float] = mapped_column(Float)
|
||||
@@ -43,4 +44,3 @@ class MixIngredient(Base):
|
||||
|
||||
from app.models.product import Product # noqa: E402
|
||||
from app.models.raw_material import RawMaterial # noqa: E402
|
||||
|
||||
|
||||
Reference in New Issue
Block a user