From 84cb03a428717baf9673e68b9be818e16459882a Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Thu, 1 Jun 2023 16:28:24 -0500 Subject: [PATCH] Set metadata key as primary --- src/bio_scan/body_data/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bio_scan/body_data/db.py b/src/bio_scan/body_data/db.py index 82cc81d..b351f7c 100644 --- a/src/bio_scan/body_data/db.py +++ b/src/bio_scan/body_data/db.py @@ -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='')