diff --git a/api/models/tools.py b/api/models/tools.py index d1fea1e2b5..894dab02a6 100644 --- a/api/models/tools.py +++ b/api/models/tools.py @@ -122,7 +122,7 @@ class EndUserAuthenticationProvider(TypeBase): ) # id of the authentication provider - id: Mapped[str] = mapped_column(StringUUID, primary_key=True, default=lambda: str(uuid4()), init=False) + id: Mapped[str] = mapped_column(StringUUID, primary_key=True, default=lambda: str(uuidv7()), init=False) # id of the tenant tenant_id: Mapped[str] = mapped_column(StringUUID, nullable=False) # id of the end user