Skip to content

Commit

Permalink
fixed?
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaCaesar committed Sep 16, 2023
1 parent dda6748 commit e118518
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions server/models/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@

class Errors(Base):
__tablename__: str = 'errors'
run_id: Mapped[int] = mapped_column(Integer(), ForeignKey("run.run_id"), primary_key=True)
submission_id: Mapped[int] = mapped_column(Integer(), ForeignKey("submission.submission_id"), primary_key=True)
run_id: Mapped[int] = mapped_column(Integer(), primary_key=True) # run id pk
run_id_fk: Mapped[int] = mapped_column(Integer(), ForeignKey("run.run_id")) # run id
submission_id: Mapped[int] = mapped_column(Integer(), primary_key=True) # submission id
submission_id_fk: Mapped[int] = mapped_column(Integer(), ForeignKey("submission.submission_id")) # submission id fk
error_txt: Mapped[str] = mapped_column(String(), nullable=True)


Expand Down
3 changes: 2 additions & 1 deletion server/models/turn_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
class TurnTable(Base):
__tablename__: str = 'turn_table'
turn_number: Mapped[int] = mapped_column(Integer(), primary_key=True)
run_id: Mapped[int] = mapped_column(Integer(), ForeignKey('run.run_id'), primary_key=True)
run_id: Mapped[int] = mapped_column(Integer(), primary_key=True)
run_id_fk: Mapped[int] = mapped_column(Integer(), ForeignKey('run.run_id'))
turn_data: Mapped[str] = mapped_column(LargeBinary(), nullable=False)


0 comments on commit e118518

Please sign in to comment.