Beginner> When developing Cho-A

Asked 2 years ago, Updated 2 years ago, 22 views

Hello, I'm a beginner in development.

When developing LIKE IT, should I register as a member and authenticate with IP and ID as a non-member, and if I am a member, should I enter ID.URL. number of times?

If you are a non-member, is the number of IPs and URLs like this?

I'd appreciate it if you could let me know

id

2022-09-21 20:17

3 Answers

The target is a comment If the user is the target of clicking like,
It's good to keep the user and comments in an n:m relationship You can create and manage tables.

It's good to have user's fk and comment's fk I just need a table.
If a user presses like on b comments, creating a like record with a.id and b.id increases one like, and
If you press like again, there is already a record, so it's good to delete it You will be able to implement cancellation.

features non-members not support if it because it is possible only in this case members.


2022-09-21 20:17

If you are a non-member, I think it would be a good idea to organize it by dividing it into IP and User agent information.

If the basic user's pk is a non-member, it is good to satisfy both members and non-members by creating a separate key followed by the 'ip+user agent value I think it's a system.


2022-09-21 20:17

Crying... Masters!

Thank you very much

I'm tapping the keyboard vigorously again today.

Thank you^

^


2022-09-21 20:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.