fixed auth, added more endpoints and config saving
This commit is contained in:
+12
-10
@@ -1,7 +1,9 @@
|
||||
CREATE TABLE public.users (
|
||||
id serial NOT NULL,
|
||||
username text NOT NULL,
|
||||
"password" text NOT NULL,
|
||||
CREATE TABLE picrinth.users (
|
||||
id serial not null,
|
||||
username text not null,
|
||||
"password" text not null,
|
||||
"role" text not null default "user",
|
||||
"disabled" bool not null,
|
||||
groups_ids integer[] NULL,
|
||||
last_seen_at timestamp with time zone NULL,
|
||||
created_at timestamp with time zone NULL,
|
||||
@@ -9,11 +11,11 @@ CREATE TABLE public.users (
|
||||
CONSTRAINT username_unique UNIQUE (username)
|
||||
);
|
||||
|
||||
CREATE TABLE public.groups (
|
||||
id serial NOT NULL,
|
||||
groupname text NOT NULL,
|
||||
join_code text NOT NULL,
|
||||
users_ids integer[] NULL,
|
||||
created_at timestamp with time zone NULL,
|
||||
CREATE TABLE picrinth.groups (
|
||||
id serial not null,
|
||||
groupname text not null,
|
||||
join_code text not null,
|
||||
users_ids integer[] null,
|
||||
created_at timestamp with time zone null,
|
||||
CONSTRAINT groupname_unique UNIQUE (username)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user