How to Realize a Sign-in Logic

  node.js, question

How to realize a logic of signing in daily and increasing points on the website, asking for advice and help?

Build a sign-in data table with two columns, one column date and one column user foreign key. Click the sign-in trigger controller to save the sign-in form. In order to record the continuous sign-in, you can build a counting table, a list of user foreign keys, a list of sign-in counts, and add 1 to the continuous sign-in. If the sign is broken, it will return to 1.