Create the backend database and REST API for the Neverwrote application. Specifications…

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper HERE Order a Different Paper HERE

Task 1.1 (50 marks)
Create the backend database and REST API for the Neverwrote application.
Specifications
The database shall have two tables, one for notebooks called Notebooks and one for notes called
Notes.
• Records from the Notebooks table shall contain the attribute title (string).
• Records from the Notes table shall contain the attributes title (string) and content (text).
• All tables have a primary key column called id.
• Foreign keys shall follow the camel-case naming convention (eg a foreign key to the
Notebooks table would be called notebookId). Specify the foreign key name explicitly in
associations, as in Lab 07 (there we did foreignKey: 'postId').
• Each note shall belong to one notebook, but a single notebook can have many notes.
• Two Sequelize models shall be defined – Notebook and Note. These models shall have the
correct associations.
• The backend shall expose the following REST API: