noise-server/sqlite/privacy_preferences.sql
2021-06-07 17:16:47 +00:00

16 lines
540 B
SQL

-- privacy_preferences definition
CREATE TABLE privacy_preferences (
id INTEGER NOT NULL,
discovery BLOB NOT NULL,
discovery_user_limit TEXT NOT NULL,
discovery_server_limit TEXT NOT NULL,
last_seen BLOB NOT NULL,
last_seen_user_limit TEXT NOT NULL,
last_seen_server_limit TEXT NOT NULL,
last_seen_course INTEGER DEFAULT 0 NOT NULL,
info BLOB NOT NULL,
info_user_limit TEXT NOT NULL,
info_server_limit TEXT NOT NULL,
CONSTRAINT privacy_preferences_FK FOREIGN KEY (id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE
);