I am working on laying out a database. Here is what I have so far (in example format of course)
tblOne
usertypeid
usertype
tblTwo
userid
username
userpass
etc
tblThree
groupid
groupname
etc
What I want to do here is allow users to join groups as members, or administrators etc. A user can also be a member of multiple groups and have different access to multiple groups (such as member of one and admin of another)
So on that note i set up another table
relAlltables
userid
usertypeid
groupid
And then write a query to join them all together based on that information
My question is is this a correct way to do this. Is there another simpler way or another way in general to do this.
Thanks
tblOne
usertypeid
usertype
tblTwo
userid
username
userpass
etc
tblThree
groupid
groupname
etc
What I want to do here is allow users to join groups as members, or administrators etc. A user can also be a member of multiple groups and have different access to multiple groups (such as member of one and admin of another)
So on that note i set up another table
relAlltables
userid
usertypeid
groupid
And then write a query to join them all together based on that information
My question is is this a correct way to do this. Is there another simpler way or another way in general to do this.
Thanks