Frontend: Create default user if no users are present in database
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user