Add mailPassword table

This table stores email credentials for users using apps which use the
email addon
This commit is contained in:
Johannes Zellner
2026-02-17 17:22:50 +01:00
parent 135c9fb64d
commit 9bac099339
7 changed files with 174 additions and 1 deletions

View File

@@ -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,