Answer the question
In order to leave comments, you need to log in
How does Habr store notification settings?
I somehow need to save all the checkboxes marked by the user, and new ones can be constantly added (these are the categories for which the user needs to be notified). I understand that you need to store something like this (create it with status 0 by trigger), but then why store unnecessary data with status 0:
user_id | category_id | status
1 1 0
1 2 1
2 1 1
2 2 0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question