Modify database layout
This commit is contained in:
parent
663fbd12fd
commit
5e7e456732
@ -1,7 +1,7 @@
|
||||
-- external_servers_preferences definition
|
||||
|
||||
CREATE TABLE external_servers_preferences (
|
||||
id INTEGER NOT NULL,
|
||||
id INTEGER NOT NULL PRIMARY KEY,
|
||||
external_servers BLOB NOT NULL,
|
||||
external_servers_limit TEXT NOT NULL,
|
||||
CONSTRAINT external_servers_preferences_FK FOREIGN KEY (id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
|
@ -1,7 +1,7 @@
|
||||
-- external_servers_privacy_preferences definition
|
||||
|
||||
CREATE TABLE external_servers_privacy_preferences (
|
||||
id INTEGER NOT NULL,
|
||||
id INTEGER NOT NULL PRIMARY KEY,
|
||||
discovery BLOB NOT NULL,
|
||||
discovery_user_limit TEXT NOT NULL,
|
||||
discovery_server_limit TEXT NOT NULL,
|
||||
|
@ -1,7 +1,7 @@
|
||||
-- notification_preferences definition
|
||||
|
||||
CREATE TABLE notification_preferences (
|
||||
id INTEGER NOT NULL,
|
||||
id INTEGER NOT NULL PRIMARY KEY,
|
||||
lock_details INTEGER DEFAULT 0 NOT NULL,
|
||||
do_not_disturb INTEGER DEFAULT 0 NOT NULL,
|
||||
CONSTRAINT notification_preferences_FK FOREIGN KEY (id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
|
@ -1,7 +1,7 @@
|
||||
-- privacy_preferences definition
|
||||
|
||||
CREATE TABLE privacy_preferences (
|
||||
id INTEGER NOT NULL,
|
||||
id INTEGER NOT NULL PRIMARY KEY,
|
||||
discovery BLOB NOT NULL,
|
||||
discovery_user_limit TEXT NOT NULL,
|
||||
discovery_server_limit TEXT NOT NULL,
|
||||
|
@ -1,7 +1,7 @@
|
||||
-- security_preferences definition
|
||||
|
||||
CREATE TABLE "security_preferences" (
|
||||
id INTEGER NOT NULL,
|
||||
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
|
||||
|
@ -1,7 +1,7 @@
|
||||
-- users definition
|
||||
|
||||
CREATE TABLE users (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
id INTEGER NOT NULL PRIMARY KEY,
|
||||
user_name TEXT NOT NULL,
|
||||
display_name TEXT,
|
||||
activated INTEGER DEFAULT 0 NOT NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user