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

@@ -12,15 +12,16 @@ insert into users (name, password, email, join_time) values (
"bar@foo.baz",
0
);
insert into users (name, password, join_time) values (
insert into users (name, password, join_time, role) values (
"bazzers",
-- e
"$argon2id$v=19$m=65536,t=3,p=4$9v5fS2ktxTinNEbIGUOoFQ$LMdEuAuuTCJ7utOE88+nXn7o6R/DEKY8ZA6wV+YkVGQ",
0
0,
2
);
insert into forums (name, description, allowed_roles_mask)
values ("Earth", "The totality of all space and time; all that is, has been, and will be.", 1);
insert into forums (name, description)
values ("Earth", "The totality of all space and time; all that is, has been, and will be.");
insert into threads (author_id, forum_id, create_time, modify_time, update_time, title, text)
values (1, 1, 0, 0, 0, "Hello, world!",