Add admin boolean for users.

This commit is contained in:
florian committed 2019-09-01 12:56:39 +02:00
1 parent 21c2c514d5
commit 6f220f0ae0
4 files changed
+25

No files matched your search

+1
View File
@@ -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)
);