What I'm trying to do is as follows:
I have a table filled with supervisors and another one filled with workers. Each worker can belong to one or more Groups and each supervisor can be "in charge" of one or more Groups. What structure would you suggest for a Group table in mysql? What if different supervisors could have different "levels" in the same group, how would you create the table then?
So far I've figured out that I could use some kind of string to store the info, such as: group_id1:level,group_id2:level,... and retrieve it with some sort of explode function. Any other ideas?
Thanks!
Tags: