How to implement Node.js point functionality

Asked 1 years ago, Updated 1 years ago, 117 views

Hello.

I would like to develop a similar point function of the attached image.

My questions are as follows.

How to distinguish points when points are used/stacked

Database Schema Configuration

Here's how I think.

Add field 'point' from user collection

Create point collection

type (example of delimited values for accumulation/use distinction. 0/1)

point (leave/use value)

I think this is enough, but is what I think right?

Or is there a better way?

Or do you have this experience?

node.js mongodb back-end database

2022-09-21 17:27

1 Answers

What you're asking is not a Node.js question, but a service plan. What you actually want is much more elaborate and vast than you think.

There's a lot more than that. After that, I'll make a DB There is a high possibility that the part that you do is already organized. Think about it.


2022-09-21 17:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.