From 03b6134d249cd459677d77096fdff9061031c9d6 Mon Sep 17 00:00:00 2001 From: jeffplays2005 Date: Sat, 27 Jul 2024 22:15:02 +1200 Subject: [PATCH] Add interface for EventReservation in firebase.ts Will add into the wiki after approval --- server/src/data-layer/models/firebase.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/server/src/data-layer/models/firebase.ts b/server/src/data-layer/models/firebase.ts index ee76c95bc..cdbb02e1d 100644 --- a/server/src/data-layer/models/firebase.ts +++ b/server/src/data-layer/models/firebase.ts @@ -167,3 +167,27 @@ export interface EventSlot { */ max_occupancy?: number } + +export interface EventReservation { + /** + * The first name of the user who made this event reservation + */ + first_name: string + /** + * The last name of the user who made this event reservation + */ + last_name: string + /** + * The email of the user who made this even reservation + */ + email: string + /** + * Boolean to check if the user is a member + * @example true + */ + is_member: boolean + /** + * A link from EventReservation -> EventSlot + */ + event_slot: string +}