mirror of https://github.com/langgenius/dify.git
fix: change end user table to user uuid v7
This commit is contained in:
parent
d784a0432c
commit
66e85ca16c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue