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.textpassword: The user's password.textcreatedAt: The date and time when the user was created.timestamp
id: A unique identifier for each credential.serial primary keyuserId: The user that created the credential.intusername: The username of the credential.textpassword: The password of the credential. The inserted data is encrypted, and decrypted upon query.texttitle: A title for the credential. Each user can only have one credential with the same title.texturl: The URL of the credential.textcreatedAt: The date and time when the credential was created.timestamp
id: A unique identifier for each note.serial primary keyuserId: The user that created the note.inttitle: A title for the note. Each user can only have one safeNote with the same title.textnote: The content of the safeNote. Up to 1000 characters long.textcreatedAt: The date and time when the note was created.timestamp
id: A unique identifier for each credit card.serial primary keyuserId: The user that created the credit card.intnumber-card: The credit card number. up to 16 characters long and min 15 characters long 'text'name: The credit card owner name.texttitle: A title for the credit card. Each user can only have one credit card with the same title.textexpirationDate: The credit card expiration date. The date must follow the format YYYY-MM-DD.textCVC: The credit card CVC. The inserted data is encrypted, and decrypted upon query. must have 3 characters longtextpassword: The credit card password. The inserted data is encrypted.textisVirtual: Whether the credit card is virtual or not.booltype: The credit card type. Must either be 'credit', 'debit' or 'debitAndCredit'.enum
id: A unique identifier for each network.serial primary keyuserId: The user that created the network.inttitle: A title for the network.textnetworkNameA name for the network.textpassword: The network password. The inserted data is encrypted.textcreatedAt: The date and time when the network was created.timestamp
id: A unique identifier for each document.serial primary keyuserId: The user that created the document.intfullName: The full name found on the document.textissueDate: The emission date of the document. The date must follow the format YYYY-MM-DD.textexpirationDate: The expiration date of the document. The date must follow the format YYYY-MM-DD.textregisterNumber: The registry number of the document.textissuingBody: The issuing agency of the document.textdocType: The document'd type. Must either be 'CNH' or 'RG'.enumcreatedAt: The date and time when the document was created.timestamp
