In our our package we have table tickets which store id of user. now the problem is our system has three type of user customer,admin,contactor . so now the user id could be same . i mean in contactor table id is 1 similarly customer table also has id 1 so now if save both ids in package's table tickets how i will differentiate ? that which id belongs to which table?
One method is i can make type column in my package's table tickets on the basis of that column i can differentiate. But i am looking for better solution.
Can i get information from session. if yes is it good practice?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire