I don't have any code yet so this is a bit of an abstract design question...
I have a set of authors and a set of groups. Each group has a number of pages that the authors have access to for adding/updating content.
When setting up my db tables and columns, what is the best way to store who has access to what? Groups can have more than one author and authors can have access to more than one group.
So far, I have a table called authors and one called groups both of which have 'id' columns. The only way I have come up is to have a column in the authors table called 'access' which would contain a comma-separated list of the group ids that author has access to. When the data is pulled an array would be created and a simple matching function would be used to determine what groups the user has access to. Is there a better way?