Schema

Database schema for the invite plugin.

GitHubSourcenpmNpm

Invite

Field NameTypeKeyDescription
tokenstringUnique token identifying this invite
createdAtDate-Date when the invite was created
expiresAtDate-Date when the invite expires
maxUsesnumber-Maximum number of times this invite can be used
createdByUserIdstringID of the user who created the invite
redirectToAfterUpgradestring-URL to redirect after the user upgrades
shareInviterNameboolean-Whether to share the inviter's name with the invitee
emailstringOptional email associated with this invite
rolestring-Role assigned when the invite is used
newAccountboolean-Whether this invite is for creating a new account or upgrading an existing one

InviteUse

Field NameTypeKeyDescription
inviteIdstringID of the invite being used
usedAtDate-Date when the invite was used
usedByUserIdstringOptional ID of the user who used the invite

How is this guide?

Last updated on

On this page