To clone the project, run the following command:
git clone https://github.com/NinaS23/DrivenPass-Back.git
Then, navigate to the project folder and run the following command:
npm install
Finally, start the server:
npm start
id
: unique identifier for each user. 'serial primary key'email
: The user's email. An email may only be registered once.text
password
: The user's password.text
createdAt
: The date and time when the user was created.timestamp
id
: A unique identifier for each credential.serial primary key
userId
: The user that created the credential.int
username
: The username of the credential.text
password
: The password of the credential. The inserted data is encrypted, and decrypted upon query.text
title
: A title for the credential. Each user can only have one credential with the same title.text
url
: The URL of the credential.text
createdAt
: The date and time when the credential was created.timestamp
id
: A unique identifier for each note.serial primary key
userId
: The user that created the note.int
title
: A title for the note. Each user can only have one safeNote with the same title.text
note
: The content of the safeNote. Up to 1000 characters long.text
createdAt
: The date and time when the note was created.timestamp
id
: A unique identifier for each credit card.serial primary key
userId
: The user that created the credit card.int
number-card
: The credit card number. up to 16 characters long and min 15 characters long 'text'name
: The credit card owner name.text
title
: A title for the credit card. Each user can only have one credit card with the same title.text
expirationDate
: The credit card expiration date. The date must follow the format YYYY-MM-DD.text
CVC
: The credit card CVC. The inserted data is encrypted, and decrypted upon query. must have 3 characters longtext
password
: The credit card password. The inserted data is encrypted.text
isVirtual
: Whether the credit card is virtual or not.bool
type
: The credit card type. Must either be 'credit', 'debit' or 'debitAndCredit'.enum
id
: A unique identifier for each network.serial primary key
userId
: The user that created the network.int
title
: A title for the network.text
networkName
A name for the network.text
password
: The network password. The inserted data is encrypted.text
createdAt
: The date and time when the network was created.timestamp
id
: A unique identifier for each document.serial primary key
userId
: The user that created the document.int
fullName
: The full name found on the document.text
issueDate
: The emission date of the document. The date must follow the format YYYY-MM-DD.text
expirationDate
: The expiration date of the document. The date must follow the format YYYY-MM-DD.text
registerNumber
: The registry number of the document.text
issuingBody
: The issuing agency of the document.text
docType
: The document'd type. Must either be 'CNH' or 'RG'.enum
createdAt
: The date and time when the document was created.timestamp