Referral
Last updated
Was this helpful?
Last updated
Was this helpful?
To create a , we use a tree-like structure where each user has a parent ID that indicates their referer and they act as referees for their parent users. We also add a referral code for each user in the UserSetting table.