Commit 51783a47 authored by Mohammed Ahmed's avatar Mohammed Ahmed

added line numbers for each requirements

parent 6502d8c5
......@@ -37,17 +37,21 @@ This application we have created allows users to monitor the food intake. Users
DATA MODEL FOR LISTUSERS:
(/routes/main.js/line 326)
This database contains all the information related to the user. When a user register, information after vaidation will be inputted into the corosponding fields. Each entity wil have its on primary key field,firstname fields,lastname ect. When a user logs in user information which has already been added to listuserdb, main.js .... will check if information is valid to proceed.
listuserdb:
PK-ID
firstname-name
surname-name
adress-Home Address
phone Number-int
Hashed Password;
PK-ID(txt):unique identifier for each users
firstname(txt)-name:first name will be used to alert user when needed
surname(txt)-name
adress(txt)-Home Address:contact information whih will be found on list
phone Number(int)-Found on list users(/list)
username-username
password-password
Hashed Password- password
DATA MODEL FOR INGRIDIENTS:
(/routes/main.js/line 650)
This database contains all informtaion regrading ingridients, when a user is logged in, users are able to add food using /addfood routes and submit the information . There are also validation to insure valid information is added forinstance, name requires to be text format and not integer. Fields are also required to have data entry and cannot be left blank.
FK-ID
PK-Ingridient name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment