changed shipment_id to integers

This commit is contained in:
GotthardG
2024-11-09 08:11:03 +01:00
parent 744a365bfc
commit d5c7e7e6f3
5 changed files with 78 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ from app.calculations import calculate_number_of_pucks, calculate_number_of_samp
class Shipment(Base):
__tablename__ = "shipments"
shipment_id = Column(String, primary_key=True, index=True)
shipment_id = Column(Integer, primary_key=True, index=True, autoincrement=True)
shipment_name = Column(String, index=True)
shipment_date = Column(Date)
shipment_status = Column(String)