better-auth icon indicating copy to clipboard operation
better-auth copied to clipboard

fix(sso): add foreign key references in schema

Open xiaoyu2er opened this issue 2 months ago • 3 comments

  • Added foreign key reference from ssoProvider.organizationId to organization.id with cascade delete
  • Added foreign key reference from ssoProvider.userId to user.id with set null on delete

see https://github.com/better-auth/better-auth/issues/4973

xiaoyu2er avatar Oct 02 '25 16:10 xiaoyu2er