Software Engineering for Internet Applications

User Groups

create table users (
        user_id                 integer primary key,
            ...
        -- a space-separated list of group IDs
        group_memberships       varchar(4000),
        ...
);

create table user_group_map (
        user_id         not null references users;
        user_group_id   not null references user_groups;
        unique(user_id, user_group_id)
);


José M. Vidal .

9 of 30