Add admin boolean for users.
This commit is contained in:
@@ -4,6 +4,7 @@ CREATE TABLE "user" (
|
||||
email VARCHAR NOT NULL UNIQUE,
|
||||
password VARCHAR NOT NULL,
|
||||
inscription_date DATE DEFAULT current_date,
|
||||
is_admin BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
CONSTRAINT user_pk PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user