diff --git a/src/schemas/pocketbase/schema.ts b/src/schemas/pocketbase/schema.ts index 87cfeff..87bf66e 100644 --- a/src/schemas/pocketbase/schema.ts +++ b/src/schemas/pocketbase/schema.ts @@ -52,7 +52,6 @@ export interface Event extends BaseRecord { end_date: string; published: boolean; has_food: boolean; - attendees?: AttendeeEntry[]; } /** @@ -66,6 +65,19 @@ export interface AttendeeEntry { 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 * Represents requests to create new events @@ -194,6 +206,7 @@ export const Collections = { USERS: "users", EVENTS: "events", EVENT_REQUESTS: "event_request", + EVENT_ATTENDEES: "event_attendees", LOGS: "logs", OFFICERS: "officers", REIMBURSEMENTS: "reimbursement",