There is a Users table that stores "login", "password", and "id of interesting pages" (list of communities)

The question is that the "id of interesting pages" can include many id'shnikov.

How to store them or how else can you make an architecture?

  • 2
    To make another table in which there will be an identifier of the user in one field, and a page in another. - Moonvvell

1 answer 1

Create a table with something like FavoritePage (id, UserID, PageID), with a one-to-many connection, get the correct storage. Do not want a new table, city crutches with a separator.