Conversation
Implement complete event management system with speakers, registrations, and capacity control.
## Components Implemented
### Entities
- Event entity with full event management (title, description, dates, location, pricing, capacity)
- EventSpeaker entity with speaker information and ordering
- EventRegistration entity with registration tracking and status
- Enums: EventType, LocationType, EventStatus, RegistrationType, RegistrationStatus
### API Endpoints
#### Public
- GET /api/v1/events - List published events (with filters: type, upcoming, featured, search)
- GET /api/v1/events/{id} - Get event details
- POST /api/v1/events/{eventId}/register - Register for event
#### Authenticated
- GET /api/v1/events/registrations/my - My registrations
- POST /api/v1/events/registrations/{id}/cancel - Cancel registration
#### Admin
- POST /api/v1/events - Create event
- PUT /api/v1/events/{id} - Update event
- DELETE /api/v1/events/{id} - Delete event
- GET /api/v1/events/admin/{id} - Get event (any status)
- GET /api/v1/events/{eventId}/registrations - Event registrations
### Services
- EventService with CRUD, filtering, and search capabilities
- EventRegistrationService with registration management, capacity validation, duplicate prevention
### Repository Methods
- EventRepository with advanced queries (by status, type, location, search, upcoming)
- EventSpeakerRepository with ordered speaker retrieval
- EventRegistrationRepository with registration tracking and validation
### Features
- Capacity control and validation
- Duplicate registration prevention
- Automatic price calculation by registration type
- Unique confirmation codes
- Registration cancellation with counter updates
- Multiple pricing tiers (member, non-member, student, international)
- Event states (DRAFT, PUBLISHED, CANCELLED, COMPLETED)
### Database
- Flyway migration V3 (events, event_speakers, event_registrations tables)
- Indexes for performance optimization
- Proper foreign key relationships
## Technical Details
- Support for both authenticated and guest registrations
- Public/private event visibility control
- Pagination support for event listings
- Confirmation code generation (8 characters)
- Registered count auto-increment/decrement
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2: Events Module
This PR implements the complete event management system with speakers, registrations, and capacity control.
🎯 Components Implemented
Entities:
API Endpoints:
Public:
Authenticated:
Admin:
Features:
Database:
📊 Files Changed
20 files added:
✅ Checklist
Ready for review and merge to phase-1 ✅