iKozay / RentACar

Apache License 2.0
2 stars 3 forks source link

Task #249 #294

Closed codedsami closed 8 months ago

codedsami commented 8 months ago

Changes in reservationModel.js, reservationController.js, reservationDataTest.js, reservationTest.js

Added two new fields: status and addons. status field has three possible values: "not checked in", "checked in", and "checked out". addons field is an object containing three properties: insurance, gps, and childSeat. Updated the create_reservation function to include status and addons in the request body. Modified the modify_reservation function to handle updates for status and addons. Updated the reservation data object to include status and addons fields. Adjusted the test cases to match the new schema and data structure. Modified the test data accordingly to include status and addons.