Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Work with Models and Relations with Prisma Schema


    In this lesson, we will learn how to model data relationships with Prisma Schema.

    We will be using a social network as our example, create data models such as users, posts, likes, comments, and model the relations between them. After this lesson, you should be able to model common relations like one-to-one (1:1), one-to-many (1:n), many-to-many (n:m) with Prisma.

    At the time of recording this lesson, Prisma Migrate is in an experimental state, so the extra flag --experimental is needed to perform the save and up commands.