noise-server/sqlite/security_preferences.sql

8 lines
269 B
SQL

-- security_preferences definition
CREATE TABLE "security_preferences" (
id INTEGER NOT NULL PRIMARY KEY,
account_tokens TEXT NOT NULL,
password_hash TEXT NOT NULL,
CONSTRAINT NewTable_FK FOREIGN KEY (id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE
);