misc: Database Indexes

This commit is contained in:
Roman Godmaire 2023-11-20 10:12:24 -05:00
parent a351207515
commit 05050fb4d0

View file

@ -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])
}