Skip to content

Added createReservation and incomplete updateReservation in new router#52

Merged
Prakhar896 merged 11 commits intomainfrom
prakhar
Jul 12, 2024
Merged

Added createReservation and incomplete updateReservation in new router#52
Prakhar896 merged 11 commits intomainfrom
prakhar

Conversation

@Prakhar896
Copy link
Copy Markdown
Contributor

@Prakhar896 Prakhar896 commented Jul 12, 2024

Overview of changes:

  • Added a new router confirmReservation.js
  • Changed Reservation, FoodListing and Guest models for better junction table operation and to remove redundant keys
  • createReservation endpoint in new router that is functional. Uses validateToken and has all data validation in place
  • updateReservation endpoint is incomplete and under construction

Sensitive changes:

  • Changes to model files including Reservation, FoodListing and Guest. Please drop tables before booting to ensure db synchronisation.
  • Reservation table has new referenceNum key that is also included as a composite primary key along with listingID and guestID. This key is globally unique, enforced programmatically.

@Prakhar896 Prakhar896 added the enhancement New feature or request label Jul 12, 2024
@Prakhar896 Prakhar896 self-assigned this Jul 12, 2024
@Prakhar896 Prakhar896 merged commit 0e51e2f into main Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant