fixed bug with logistics

This commit is contained in:
GotthardG
2024-12-11 10:10:43 +01:00
parent 5488df4318
commit 9160339961
14 changed files with 4497 additions and 5 deletions

View File

@ -167,3 +167,14 @@ class SampleEvent(Base):
timestamp = Column(DateTime, default=datetime.utcnow)
sample = relationship("Sample", back_populates="events")
#class PuckEvent(Base):
# __tablename__ = "sample_events"
#
# id = Column(Integer, primary_key=True, index=True)
# puck_id = Column(Integer, ForeignKey('puck.id'))
# tell_position = Column(String(255), nullable=True)
# event_type = Column(String(255), index=True)
# timestamp = Column(DateTime, default=datetime.utcnow)
#
# sample = relationship("Sample", back_populates="events")

View File

@ -290,7 +290,7 @@ class LogisticsEventCreate(BaseModel):
transaction_type: str
class SlotSchema(BaseModel):
id: str
id: int
qr_code: str
label: str
qr_base: Optional[str]