add and remove front
list shows up in a header bar on the home page
This commit is contained in:
@@ -3,8 +3,9 @@ DROP TABLE IF EXISTS member;
|
||||
DROP TABLE IF EXISTS icons;
|
||||
DROP TABLE IF EXISTS groups;
|
||||
DROP TABLE IF EXISTS group_members;
|
||||
DROP TABLE IF EXISTS user_front;
|
||||
DROP TABLE IF EXISTS pages;
|
||||
DROP TABLE IF EXISTS themes;
|
||||
DROP TABLE IF EXISTS member_themes;
|
||||
|
||||
CREATE TABLE user (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
@@ -21,6 +22,7 @@ CREATE TABLE member (
|
||||
bio TEXT,
|
||||
main_icon INTEGER,
|
||||
homepage BOOLEAN NOT NULL DEFAULT 0,
|
||||
front BOOLEAN NOT NULL DEFAULT 0,
|
||||
FOREIGN KEY (user_id) REFERENCES user (id),
|
||||
FOREIGN KEY (main_icon) REFERENCES icons (id)
|
||||
);
|
||||
@@ -46,14 +48,6 @@ CREATE TABLE group_members (
|
||||
FOREIGN KEY (member_id) REFERENCES member (id)
|
||||
);
|
||||
|
||||
CREATE TABLE user_front (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
member_id INTEGER NOT NULL,
|
||||
user_id INTEGER NOT NULL,
|
||||
FOREIGN KEY (member_id) REFERENCES member (id),
|
||||
FOREIGN KEY (user_id) REFERENCES user (id)
|
||||
);
|
||||
|
||||
CREATE TABLE pages (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
member_id INTEGER NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user