Rapid-Reservation / rapid-api

Backend and API code for the Rapid Reservation app
https://rapid-api-rho.vercel.app
0 stars 1 forks source link

[API] Add a system to make tables available again #14

Closed ekaulfuss closed 5 months ago

ekaulfuss commented 7 months ago

As a Backend Developer, I would like to have table database reset itself after a time during the testing/development phase. Is this something we can integrate?

Acceptance Critera:

Discuss following ssuggestions and decide on plan of action:

  1. One hour after seating, have them automatically switch back
  2. Create an endpoint that can be hit to reset the tables
HaffCaff commented 7 months ago

I was thinking about this, like having a reset endpoint or a query that will re-seed database to its default setting. I think its a good idea and something we should discuss with @luketwainwright and @dcamp27 !

HaffCaff commented 7 months ago

@ekaulfuss or @luketwainwright

Did you guys want to prototype this out and possibly have something ready by Thursday?

dcamp27 commented 7 months ago

The database does store the time that the order is placed so we could do something like that plus 120 minutes to trigger the change.