0
Creating an ecommerce website with admin in backend, how do i model mysql db for customers and admin?
Will be using JWT so wondering what is the simplest way to do this? Create a user table with role attribute?
2 Réponses
0
create a usre table that contains both admins and users and add "permision" column to it with value 1 for admins and 0 for users
and depending on the user permision value the content will be changed
0
thank you, i will try it out!