add ownerId, ownerType to mailboxes table

ownerId is the app id or user id or the group id.
This commit is contained in:
Girish Ramakrishnan
2016-09-21 14:12:04 -07:00
parent 5773f26548
commit f24eee026e
2 changed files with 67 additions and 0 deletions

View File

@@ -125,6 +125,8 @@ CREATE TABLE IF NOT EXISTS eventlog(
*/
CREATE TABLE IF NOT EXISTS mailboxes(
name VARCHAR(128) NOT NULL,
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 */
creationTime TIMESTAMP,