"Likes" with SQL ?


I am working on an Android/Web app. It allows people to comments content, and now I need to add a "Like" system.

My question is: how can I know who liked a comment ? People and Comments have Id, should I store people's ID in a SQL table for each comment ?
Of course, People cannot like twice a same comment, so I need to store the people's Id somewhere ...



  • PubuduGayanPubuduGayan NZMember ✭✭✭

    @JeanEuuuudes Probably this is not related to xamarin or mobile development. but if you have a login to the system then you can easily track who comments or like when, plus you can use device registration token.

  • JeanEuuuudesJeanEuuuudes USMember ✭✭

    Yeah, I have a login system. But I dont know how to store the likes

  • ChristopheBERNARDChristopheBERNARD BEMember ✭✭✭✭

    Hello all,

    @JeanEuuuudes here is it a sympathic video about how to use databse in mobile dev

    have a nice day

Sign In or Register to comment.