I have table like below.
I want to store user roles like admin,reader,writer
How can I store the values in my table.
I searched in google and many results such as 2 types.
- Storing values to a single column name as user_roles and store values with pipe (|) separated (same as above).
- Storing values on another table like user_roles and store with foreign key of users.
Which of the above two method is better for development ?
Tell me the advantage and dis-advantage of both please...
Thanks & Regards