v1.3 - client and admin scaffolding
This commit is contained in:
@@ -32,6 +32,7 @@ class RawMaterialPriceVersion(Base):
|
||||
__tablename__ = "raw_material_price_versions"
|
||||
|
||||
id: Mapped[int] = mapped_column(primary_key=True)
|
||||
tenant_id: Mapped[str] = mapped_column(String(64), default="default")
|
||||
raw_material_id: Mapped[int] = mapped_column(ForeignKey("raw_materials.id"), index=True)
|
||||
market_value: Mapped[float] = mapped_column(Float)
|
||||
waste_percentage: Mapped[float] = mapped_column(Float, default=0.0)
|
||||
@@ -41,4 +42,3 @@ class RawMaterialPriceVersion(Base):
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime, default=datetime.utcnow)
|
||||
|
||||
raw_material: Mapped[RawMaterial] = relationship(back_populates="price_versions")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user