Table Freelancers modification to add the salt and hash and to make the email address unique and not null
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user