Put in order · Vibe coding with Claude Code course · Module 14: Pinterest clone

Sorting: the order of work with Prisma 7

Put in order the steps by which the Treasure Map boards got into the database in Prisma 7:

Items to put in order

  • The query prisma.board.findMany() in lib/boards.ts
  • Install with a version number: prisma@7 and @prisma/client@7
  • The client in lib/prisma.ts: new PrismaClient({ adapter })
  • npx prisma generate
  • The migration: --create-only, read the SQL, then migrate dev
  • The models Pin, Board and PinOnBoard in schema.prisma

You can check the correct answer by solving this task in the CodeWorlds game.