additional fields

organization({
schema: {
invitation: {
additionalFields: {
metadata: {
type: "json",
required: false,
default: null,
input: true,
},
},
},
},
allowUserToCreateOrganization: (user: BetterAuthUser) => {
return (user as User).role === USER_ROLES.SUPER_ADMIN;
}, // Only super admin can create
creatorRole: MEMBER_ROLES.OWNER,
}),

how to reflect this additional field in db?, do i have to do it manually, and also how to pass this now, while creating invitations
Was this page helpful?