MODULE 12 · 2 LESSONS
Use Prisma 7 for type-safe access while keeping database behavior and migrations explicit.
Project checkpoint: Replace the in-memory CourseFlow repository with PostgreSQL and Prisma.
12of 34
Module 12 learning loop
- 1Models
- 2Relations
- 3Prisma Migrate
- 4Migration Review
What this module changes in your work
- Represent the relational model, create reviewed migrations and protect production data.
- Fetch only required fields, avoid N+1 patterns and group related writes.
- Use models, relations, Prisma Migrate in one coherent implementation.
- Complete this evidence-backed checkpoint: Replace the in-memory CourseFlow repository with PostgreSQL and Prisma.
Lessons
Prisma Schema and Migrations
Represent the relational model, create reviewed migrations and protect production data.
Prisma Queries and Transactions
Fetch only required fields, avoid N+1 patterns and group related writes.
PROJECT CHECKPOINT
Turn prisma orm into evidence
Replace the in-memory CourseFlow repository with PostgreSQL and Prisma.
- Write acceptance criteria for models before implementation.
- Keep the change small enough that a reviewer can connect it to the intended behavior.
- Use the most direct check available for relations and save the result.
- Record one decision you would keep and one you would revisit after feedback.
Share this page
Share this page with the people who will use it next.
Discussion
No comments yet. Add the first useful question or observation.
You must log in to post a comment.