mail: add type field

This commit is contained in:
Girish Ramakrishnan
2018-04-07 19:12:07 -07:00
parent 1d761deec0
commit bf0dd935e5
3 changed files with 91 additions and 46 deletions

View File

@@ -164,6 +164,7 @@ CREATE TABLE IF NOT EXISTS mail(
*/
CREATE TABLE IF NOT EXISTS mailboxes(
name VARCHAR(128) NOT NULL,
type VARCHAR(16) NOT NULL, /* 'mailbox', 'alias', 'list' */
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 */