Event Participants Table
Component Detail
Data Layer
low complexity
backend
0
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
Database table and repository layer storing participant records that link users or contacts to events. Enforces uniqueness constraints to prevent duplicate registrations and supports participant count queries feeding directly into Bufdir reporting.
event-participants-table
Responsibilities
- Store participant records linking (event_id, user_id) or (event_id, contact_id) with timestamps
- Enforce unique constraints on both user-based and contact-based participation pairs
- Provide participant count and registration status queries for real-time display
- Support soft-delete for participant removal while preserving the audit trail for Bufdir compliance
Interfaces
insertParticipant(eventId, userId, contactId?)
removeParticipant(eventId, participantId)
getParticipantCount(eventId)
isRegistered(eventId, userId)
getParticipants(eventId)
Relationships
Dependents (2)
Components that depend on this component