Table Freelancers modification to add the salt and hash and to make the email address unique and not null

This commit is contained in:
Tina_Azure
2023-04-19 02:04:56 +02:00
parent 27f338c166
commit 795048018c

View File

@ -3,7 +3,7 @@ sudo -u postgres createuser -P -e cavecomm
sudo -u postgres createdb --owner=cavecomm cavecomm 'contains all the information for the cavecomm instance on this device'
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE cavecomm TO cavecomm;"
sudo -u postgres psql -c "CREATE TABLE requests(
id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
customerName text,
customerEmailAddress text,
customerContactDetails text,
@ -24,7 +24,9 @@ sudo -u postgres psql -c "CREATE TABLE requests(
sudo -u postgres psql -c "CREATE TABLE freelancers(
id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
emailAddress text,
emailAddress text UNIQUE NOT NULL,
salt text NOT NULL,
hash text NOT NULL,
name text,
generalInformation text,
basicInformation text,