Skip to content

Commit

Permalink
Add interface for EventReservation in firebase.ts (#695)
Browse files Browse the repository at this point in the history
* Add interface for EventReservation in firebase.ts

Will add into the wiki after approval

* Change EventReservation to subcollection

Changed EventSlot -> Event

* Adds clarity as there is no longer a need for a "slot"

* Remove reservations list in Event
  • Loading branch information
jeffplays2005 authored Jul 30, 2024
1 parent 464656c commit 50ac5d9
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion server/src/data-layer/models/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,27 @@ export interface BookingChange {
new_check_out: Timestamp // New check-out timestamp
}

export interface EventSlot {
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
}

export interface Event {
/**
* The title of this event
* @example Snowboarding race!
Expand Down

0 comments on commit 50ac5d9

Please sign in to comment.