Answer the question
In order to leave comments, you need to log in
How to properly design a database with subscriptions?
Tell me, I want to implement subscriptions on the site to accounts, how to design it correctly?
I see only one option: create a separate table:
id | *column who subscribed* | *column who subscribed to*
and make a many-to-one or one-to-many connection. Will this be the correct solution, or is there another way?
Answer the question
In order to leave comments, you need to log in
Yes, such a table is a standard solution, it doesn't even need an id.
and make a many-to-one or one-to-many connectionWhat does "do" mean? You have already made this table many-to-many
Only other people can follow a person. Actually, that's all. No need to complicate
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question