Skip to content

Commit

Permalink
Set metadata key as primary
Browse files Browse the repository at this point in the history
  • Loading branch information
Silarn committed Jun 1, 2023
1 parent 1b69401 commit 84cb03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bio_scan/body_data/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Commander(Base):
class Metadata(Base):
__tablename__ = 'metadata'

key: Mapped[str] = mapped_column(nullable=False, unique=True)
key: Mapped[str] = mapped_column(nullable=False, primary_key=True)
value: Mapped[str] = mapped_column(nullable=False, default='')


Expand Down

0 comments on commit 84cb03a

Please sign in to comment.