We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a95d75c commit 0fa4cbfCopy full SHA for 0fa4cbf
app/models.py
@@ -76,3 +76,12 @@ class Payment(Base):
76
status = Column(String, nullable=False)
77
created_at = Column(DateTime(timezone=True), server_default=func.now())
78
updated_at = Column(DateTime(timezone=True), onupdate=func.now())
79
+class Shipment(Base):
80
+ __tablename__ = "shipments"
81
+ id = Column(Integer, primary_key=True, index=True)
82
+ order_id = Column(Integer, nullable=False)
83
+ shipment_date = Column(DateTime(timezone=True), nullable=False)
84
+ delivery_date = Column(DateTime(timezone=True), nullable=True)
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())
0 commit comments