Showcase: Building a Calendar App with Prisma
summary
A small booking app called Tomorrow uses Prisma to store an Event model, separate EventDetails, EventException and EventCancellation models, and a resolver that runs a utility expandEvents which calls the npm rrule implementation of the iCalendar spec to generate instances without storing every occurrence. Exceptions map an original date to a new date and linked details; cancellations store original dates to exclude. Demo runs migrations, seeds data, and shows exceptions changing times and cancellations removing dates as expected.
AI-written summary · about
