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?

28th Apr 2022, 3:23 PM
Iliyana Zainal Abidin
Iliyana Zainal Abidin - avatar
2 Antworten
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
28th Apr 2022, 6:55 PM
Mohamed Ayaou
0
thank you, i will try it out!
28th Apr 2022, 10:29 PM
Iliyana Zainal Abidin
Iliyana Zainal Abidin - avatar