Skip to content
Snippets Groups Projects
Commit 43495e7c authored by Bitha17's avatar Bitha17
Browse files

add unique email and username constraint

parent 5321acf5
Branches
No related merge requests found
......@@ -20,8 +20,8 @@ CREATE TABLE IF NOT EXISTS tickets (
CREATE TABLE IF NOT EXISTS users (
user_ID INT AUTO_INCREMENT PRIMARY KEY,
user_name CHAR(255),
username CHAR(255),
user_email VARCHAR(255),
username CHAR(255) UNIQUE,
user_email VARCHAR(255) UNIQUE,
user_hashedPass CHAR(255),
isAdmin BOOLEAN
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment