mail: add members field for lists

we have to track the members of a list in the mail app separately
from groups. this is required because users can now have multiple
mailboxes. and because of that we cannot do a 1-1 mapping of group
members to mailboxes anymore. the ui is changed to select mailboxes
when creating a list.
This commit is contained in:
Girish Ramakrishnan
2018-04-05 15:46:13 -07:00
parent 2c8fa01d6d
commit 605dc00422
6 changed files with 114 additions and 57 deletions

View File

@@ -167,6 +167,7 @@ CREATE TABLE IF NOT EXISTS mailboxes(
ownerId VARCHAR(128) NOT NULL, /* app id or user id or group id */
ownerType VARCHAR(16) NOT NULL, /* 'app' or 'user' or 'group' */
aliasTarget VARCHAR(128), /* the target name type is an alias */
membersJson TEXT, /* members of a group */
creationTime TIMESTAMP,
domain VARCHAR(128),