diff --git a/app/models.py b/app/models.py index ef477dc..de7eb40 100644 --- a/app/models.py +++ b/app/models.py @@ -52,7 +52,7 @@ class Password(db.Model): __tablename__ = "password" id: Mapped[int] = mapped_column(primary_key=True) - value: Mapped[str] = mapped_column(String(60)) + value: Mapped[str] = mapped_column(String(60), unique=True) expires_at: Mapped[Optional[datetime]] = mapped_column( UTCDateTime() ) # Optional expiration