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.