Forum Moderators: coopster
One layout might be as simple as a users table, a groups table, and a user-to-group cross reference table. The user-to-group cross reference table would contain the uniques user identifier and the group they belong to, or groups they belong to if they are in more than one group in which case they would have more than one row in that table.
Another option is to use binary representation, but that limits your group structure to 32 or 64, depending on the OS or database being used to store the number.