We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bd729c7 + 8452fe7 commit 8ab5eacCopy full SHA for 8ab5eac
institutions-api/db/db_models.py
@@ -51,7 +51,7 @@ class InstitutionIdentifier(Base):
51
52
id = Column(UUID(as_uuid=True), primary_key=True, default=uuid4)
53
54
- identifier = Column(String, nullable=False)
+ identifier = Column(String, nullable=False, unique=True)
55
56
institution_id: Mapped[UUID] = mapped_column(ForeignKey('institution.id'))
57
identifier_type_id: Mapped[UUID] = mapped_column(ForeignKey('identifier_type.id'))
0 commit comments