Add mailPassword table
This table stores email credentials for users using apps which use the email addon
This commit is contained in:
@@ -300,6 +300,16 @@ CREATE TABLE IF NOT EXISTS appPasswords(
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS mailPasswords(
|
||||
appId VARCHAR(128) NOT NULL,
|
||||
userId VARCHAR(128) NOT NULL,
|
||||
password VARCHAR(1024) NOT NULL,
|
||||
creationTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY(appId) REFERENCES apps(id),
|
||||
FOREIGN KEY(userId) REFERENCES users(id),
|
||||
PRIMARY KEY (appId, userId)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS dockerRegistries(
|
||||
id VARCHAR(128) NOT NULL UNIQUE,
|
||||
provider VARCHAR(16) NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user