From 66e85ca16cea680018f72baf409f9b6ee80a15d3 Mon Sep 17 00:00:00 2001 From: Charles Yao Date: Wed, 26 Nov 2025 01:27:07 -0600 Subject: [PATCH] fix: change end user table to user uuid v7 --- api/models/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/models/tools.py b/api/models/tools.py index 54c56d6a20..0ef261e90b 100644 --- a/api/models/tools.py +++ b/api/models/tools.py @@ -123,7 +123,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