We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fa4cbf commit 450049dCopy full SHA for 450049d
app/models.py
@@ -85,3 +85,11 @@ class Shipment(Base):
85
status = Column(String, nullable=False)
86
created_at = Column(DateTime(timezone=True), server_default=func.now())
87
updated_at = Column(DateTime(timezone=True), onupdate=func.now())
88
+class Inventory(Base):
89
+ __tablename__ = "inventory"
90
+ id = Column(Integer, primary_key=True, index=True)
91
+ product_id = Column(Integer, nullable=False)
92
+ quantity_available = Column(Integer, nullable=False)
93
+ last_updated = Column(DateTime(timezone=True), onupdate=func.now(), server_default=func.now())
94
+ created_at = Column(DateTime(timezone=True), server_default=func.now())
95
+
0 commit comments