diff --git a/README.md b/README.md index da2d106..00823f3 100644 --- a/README.md +++ b/README.md @@ -14,30 +14,37 @@ frontend app code: https://github.com/idoctnef/collectivecarApp ##To Do List: **Backend and Frontend:** ``` --signup user --> done --loggin user --> done --update user profile --> done --create new travel --> done --update travel --> done --delete travel --> done --create offeringCar --> done +-signup user --> done +-loggin user --> done +-update user profile --> done +-create new travel --> done +-update travel --> done +-delete travel --> done +-create offeringCar --> done -update offeringCar -delete offeringCar --create askingForTravel (needtravel) --> done +-create askingForTravel (needtravel) --> done -update askingForTravel -delete askgingForTravel --create askingPackage (need transport package) --> done +-create askingPackage (need transport package) --> done -update askingPackage -delete askgingPackage --user joins a car --> done --user offer car to a travel --> done --user offer car to a askingpackage --> done +-user joins a car --> done +-user offer car to a travel --> done +-user offer car to a askingpackage --> done -user unjoins a car -user unoffer car to a travel -user unoffer car to a askingpackage --comment publication(car, travel, package) --> done +-comment publication(car, travel, package) --> done +-valorating users system --web page (webapp) +-UX design +-interface graphic design +-icons +-api more secure and robust (comprovations, hash passwords, ...) + +-web page (webapp) --> (de moment es pot penjar la app en versió web tal qual, + que es podrà fer servir des d'un navegador com si fós la app) ``` diff --git a/models/userModel.js b/models/userModel.js index 1f9e36d..2cf0ba0 100644 --- a/models/userModel.js +++ b/models/userModel.js @@ -9,6 +9,11 @@ var userSchema = new Schema({ avatar: { type: String }, mail: { type: String }, phone: { type: String }, - telegram: { type: String } + telegram: { type: String }, + valorations: [{ + username: { type: String }, + value: { type: Number }, + comment: { type: String } + }] }) module.exports = mongoose.model('userModel', userSchema);