© 2026 Hedgehog Software, LLC
[BetterAuthError: The field "userId" does not exist in the schema for the model "member". Please update your schema.]
user_id
organization_id
betterAuth()
member: { modelName: "member", fields: { userId: "user_id", organizationId: "organization_id", teamId: "team_id" } }
organization({ // Other options... schema: { member: { fields: { userId: "user_id", organizationId: "organization_id", teamId: "team_id" } } } })