also remove id since it's not useful for mailbox case (not like
mailbox can be renamed and we need a fixed it)
This commit is contained in:
Girish Ramakrishnan
2016-05-27 19:20:42 -07:00
parent 6993a9c7e7
commit ce927bfa22
9 changed files with 261 additions and 41 deletions

View File

@@ -120,9 +120,8 @@ CREATE TABLE IF NOT EXISTS eventlog(
PRIMARY KEY (id));
CREATE TABLE IF NOT EXISTS mailboxes(
id VARCHAR(128) NOT NULL,
name VARCHAR(128) NOT NULL UNIQUE,
aliasTarget VARCHAR(128), /* the target if type is an alias */
name VARCHAR(128) NOT NULL,
aliasTarget VARCHAR(128), /* the target name type is an alias */
creationTime TIMESTAMP,
PRIMARY KEY (id));