Referal Links and Points system

ammar Asaad 1 Reputation point
2022-03-08T20:37:18.627+00:00

Hello
Good day every one

I have a website that students enter and book a lecturer using there accounts, i want to add a feature that make the students able to send a referral links to another students and when that new student (student B) book at least one lecturer then (student A) who invite him will win X points, in addition to that i need that student when ever he book a lecturer, to win Y points, therefore, this student will giant some of points, lets say Z points, he will be able to replace them with 1 free lecturer.

The way i think is, the referral link will contain (student A)'s ID and when the other student registered by this link, and when this new student book a lecturer (at least), a trigger will run and add the X points to (student A)'s fund.
The second way to gain points is when the student book a lecturer, a trigger will run and add Y point to his fund.

DB design will be as below:

TBL_Students
{ (main info), referral link (Y,N), Referral ID (for the origin student))}

TBL_Points
{ Student id, type (from invitation or from booking), points value, used (Y,N)}

noting that it's just a thought and i don't know exactly how to implement it, please support and advise

Regards

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,178 questions
{count} votes

1 answer

Sort by: Most helpful
  1. maomao 1 Reputation point
    2022-03-09T11:53:56.537+00:00

    ng toolbar with Alt/Option + F10.
    Hint: Notify or tag a user in this post by typinstrong text

    Tab to the formatting toolbar with Alt/Option + F10.
    Hint: Notify or tag a user in this post by typing @userna