update schema for attendees
This commit is contained in:
parent
8e956c7fe5
commit
690efee339
1 changed files with 14 additions and 1 deletions
|
@ -52,7 +52,6 @@ export interface Event extends BaseRecord {
|
||||||
end_date: string;
|
end_date: string;
|
||||||
published: boolean;
|
published: boolean;
|
||||||
has_food: boolean;
|
has_food: boolean;
|
||||||
attendees?: AttendeeEntry[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -66,6 +65,19 @@ export interface AttendeeEntry {
|
||||||
food: string;
|
food: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event Attendees Collection
|
||||||
|
* Represents attendees for events
|
||||||
|
* Collection ID: pbc_537966730
|
||||||
|
*/
|
||||||
|
export interface EventAttendee extends BaseRecord {
|
||||||
|
user: string; // Relation to User
|
||||||
|
event: string; // Relation to Event
|
||||||
|
food_ate: string;
|
||||||
|
time_checked_in: string;
|
||||||
|
points_earned: number;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Event Requests Collection
|
* Event Requests Collection
|
||||||
* Represents requests to create new events
|
* Represents requests to create new events
|
||||||
|
@ -194,6 +206,7 @@ export const Collections = {
|
||||||
USERS: "users",
|
USERS: "users",
|
||||||
EVENTS: "events",
|
EVENTS: "events",
|
||||||
EVENT_REQUESTS: "event_request",
|
EVENT_REQUESTS: "event_request",
|
||||||
|
EVENT_ATTENDEES: "event_attendees",
|
||||||
LOGS: "logs",
|
LOGS: "logs",
|
||||||
OFFICERS: "officers",
|
OFFICERS: "officers",
|
||||||
REIMBURSEMENTS: "reimbursement",
|
REIMBURSEMENTS: "reimbursement",
|
||||||
|
|
Loading…
Reference in a new issue