From d7cbb34814766e3bbb118c3d35d63024a70b08b7 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sun, 27 Oct 2024 07:34:44 +0100 Subject: [PATCH] Prepare sql for encrypted user info, email address and profile pic --- create_db.sql | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/create_db.sql b/create_db.sql index dca426c..162236f 100644 --- a/create_db.sql +++ b/create_db.sql @@ -5,12 +5,14 @@ DROP TABLE IF EXISTS issues; DROP TABLE IF EXISTS users; CREATE TABLE users ( - id INT AUTO_INCREMENT, - username VARCHAR(15) NOT NULL UNIQUE, - password VARCHAR(60) NOT NULL, - first_name VARCHAR(50) NOT NULL, - last_name VARCHAR(50) NOT NULL, - role INT NOT NULL, + id INT AUTO_INCREMENT, + username VARCHAR(15) NOT NULL UNIQUE, + password VARCHAR(60) NOT NULL, + first_name VARCHAR(60) NOT NULL, + last_name VARCHAR(60) NOT NULL, + email VARCHAR(60) NOT NULL, + profile_pic_link VARCHAR(255) NOT NULL, + role INT NOT NULL, PRIMARY KEY (id) );