This PR is to add the event type(In-Person or Virtual) to the database for event badging. It is also for batch updating old events in the database to include event types for them.
changes were made in the database/models/event.model.js, the event_badging/logic/saveEvent.js and the database/controllers/event.controller.js files.
the changes in the database are to add a new column in the event table called event_type, the changes in the saveEvent.js logic are to call the endpoint in the event controller to create an event record
Testing:
Create a test event badging and process it to finish to store in your test db locally.
Use Postman to call the getAll endpoint for the event controller to see the events in the database
Pull Request Template
Summary:
46
Changes:
database/models/event.model.js
, theevent_badging/logic/saveEvent.js
and thedatabase/controllers/event.controller.js
files.event_type
, the changes in thesaveEvent.js
logic are to call the endpoint in the event controller to create an event recordTesting:
Additional Notes:
None.