Add admin panel, arbitrary queries

This commit is contained in:
David Hoppenbrouwers
2022-10-08 23:40:35 +02:00
parent 5773bce507
commit e3af03bbac
9 changed files with 290 additions and 10 deletions

View File

@@ -5,7 +5,8 @@ create table users (
email varchar(254),
about text not null default '',
join_time integer not null,
role integer not null default 0
role integer not null default 0,
banned_until integer
);
create table threads (
@@ -34,10 +35,9 @@ create table comments (
);
create table forums (
forum_id integer unique not null primary key autoincrement,
forum_id integer unique not null primary key autoincrement,
name varchar(64) not null,
description text,
allowed_roles_mask integer not null
description text not null default ''
);
-- Both of these speed up searches significantly if there are many threads or comments.