Overview
Implement Create, Read, Update, and Delete (CRUD) functionality for event-related features using the Prisma models in the backend. Core models to be supported include Events and EventSchedule, as well as the EventStatus enum for status tracking.
Relevant Prisma Models
- Events: Represents an event entity and contains fields like
id, name, description, status, and a relation to EventSchedule.
- EventSchedule: Represents the schedule for an event, including
startDate, endDate, and a relation to its parent Events.
- EventStatus: Enum used for tracking event state (UPCOMING, ONGOING, COMPLETED).
Tasks
Acceptance Criteria
- All event CRUD endpoints function as specified
- Event and schedule data is stored and queried using the Prisma models
- Deleting an event cascades to its schedules
- Tests cover all CRUD scenarios
- Documentation is up to date
Reference
Prisma model definitions can be found in prisma/schema/auth.prisma.
Overview
Implement Create, Read, Update, and Delete (CRUD) functionality for event-related features using the Prisma models in the backend. Core models to be supported include
EventsandEventSchedule, as well as theEventStatusenum for status tracking.Relevant Prisma Models
id,name,description,status, and a relation toEventSchedule.startDate,endDate, and a relation to its parentEvents.Tasks
Acceptance Criteria
Reference
Prisma model definitions can be found in
prisma/schema/auth.prisma.