This commit is contained in:
Erik Johnston 2017-07-11 14:23:50 +01:00
parent 6322fbbd41
commit 0aac30d53b
3 changed files with 9 additions and 5 deletions

View file

@ -28,7 +28,7 @@ CREATE UNIQUE INDEX groups_idx ON groups(group_id);
CREATE TABLE group_users (
group_id TEXT NOT NULL,
user_id TEXT NOT NULL,
is_admin BOOLEAN NOT NULL,
is_admin BOOLEAN NOT NULL, -- whether the users membership can be seen by everyone
is_public BOOLEAN NOT NULL
);
@ -49,7 +49,7 @@ CREATE INDEX groups_invites_u_idx ON group_invites(user_id);
CREATE TABLE group_rooms (
group_id TEXT NOT NULL,
room_id TEXT NOT NULL,
is_public BOOLEAN NOT NULL
is_public BOOLEAN NOT NULL -- whether the room can be seen by everyone
);
CREATE INDEX groups_rooms_g_idx ON group_rooms(group_id, room_id);