add UNIQUE to email

This commit is contained in:
Mikkel
2022-05-24 14:51:15 +02:00
parent 61bbaf17b9
commit 0f58a9407c

View File

@ -5,7 +5,7 @@ CREATE TABLE IF NOT EXISTS users (
first_name varchar(64) NOT NULL,
last_name varchar(64) NOT NULL,
password varchar(120) NOT NULL,
email varchar(64) NOT NULL,
email varchar(64) NOT NULL UNIQUE,
address varchar(64) NOT NULL,
role varchar(64) NOT NULL CHECK ( role in ('student', 'parent', 'teacher') )
);