Update: Database fields

This commit is contained in:
Yûki VACHOT 2022-01-04 22:38:30 +01:00
parent ad59b66279
commit 9be59a8419
5 changed files with 55 additions and 29 deletions

View file

@ -2,10 +2,10 @@
CREATE TABLE IF NOT EXISTS users
(
id integer NOT NULL,
id serial PRIMARY KEY,
email character varying(320) NOT NULL,
login character varying(32) NOT NULL,
hash_pass character varying(256) NOT NULL,
is_admin boolean NOT NULL DEFAULT FALSE,
CONSTRAINT users_pkey PRIMARY KEY(id)
hash_pass bytea NOT NULL,
salt bytea NOT NULL,
is_admin boolean NOT NULL DEFAULT FALSE
)