Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User x Referral linking #37

Open
4 tasks
elliotBraem opened this issue Feb 24, 2025 · 0 comments
Open
4 tasks

User x Referral linking #37

elliotBraem opened this issue Feb 24, 2025 · 0 comments

Comments

@elliotBraem
Copy link
Collaborator

Currently we're using DIDs, we should use other keys like 8-16 characters

If we use random 8-16 characters then we need to add a entity in user table called maybe refer or we need to store those random somewhere in user profile so we can match the user when someone join by those random characters to assign rewards

Option 2
Or we can just slice down the 8 characters from user id then match user id 8 characters

Also if we should display how many user a joined by user refer link
So we need to create a table for refers which stores the userid of users by refer link
And userid of user who generates link

  • generate 8-16 chracters
  • grab referral id from parmeters on page redirect
  • store id with user
  • assign points to original user (after completing quests)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant