Frontend: Create default user if no users are present in database

This commit is contained in:
2023-09-11 10:08:12 +02:00
parent ab8ef2f643
commit 0dc311859a
4 changed files with 18 additions and 8 deletions

View File

@@ -1,15 +1,13 @@
create table channels(id int primary key not null,
server_id int not null, -- foreign key in servers table
name text not null,
public int not null,
accessor int -- foreign key in accessors table
public int not null
);
create table users(id int primary key not null,
name text not null,
password text not null,
privileges int not null, -- 0 - normal user, 1 - moderator, 2 - administrator
accessor int -- foreign key in accessors table
privileges int not null -- 0 - normal user, 1 - moderator, 2 - administrator
);
create table servers(id int primary key not null,