馃殌 [Feature] Give out Invites
Created by: ulfgebhardt
馃殌 Feature
An administrator can give out invites to Users.
- x invites to all
- x invites to all active since y days
- x invites to user
A global setting how many invites a user can have (can be hardcoded - 3). A user cannot get more invites.
In the database:
user.invites = 5
User generates invite code:
[user] ----(generatedCode)---> [code]
or
[user] <----(generatedBy)---- [code]
On register of new user we delete [code] and the relation (generatedCode) and create the invite and follow relations between both users.