I am new to database design, I am trying to build a database of shopping system.
Assume we have a Customer table and a Staff table.
The requirement is:
- To allow part of the customers to have privilege of “Item return & refund”.
- To allow part of the staff to have the authority to process the refund.
My idea is to simply add a column with a Boolean value to “Flag” which customer or which staff has the authority or not?
Is that correct to solve this problem? Any potential problem?
This would be correct for a simplistic design. However, if you want to be able to expand on your website or if your needs grow over time, you may need to allow for more detailed permissions. A user_permissions table and an employee_permission table would be desirable in that case.