diff --git a/prisma/schema.prisma b/prisma/schema.prisma index a4b9e9a..648fe59 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -52,6 +52,8 @@ model Track { createdAt DateTime @default(now()) updatedAt DateTime @updatedAt + + @@index([producerId]) } model TrackVersion { @@ -63,6 +65,8 @@ model TrackVersion { comments Comment[] createdAt DateTime @default(now()) updatedAt DateTime @updatedAt + + @@index([trackId]) } model Comment { @@ -77,4 +81,6 @@ model Comment { createdAt DateTime @default(now()) updatedAt DateTime @updatedAt + + @@index([authorId, trackVersionId]) }