misc: Database Indexes
This commit is contained in:
parent
a351207515
commit
05050fb4d0
1 changed files with 6 additions and 0 deletions
|
@ -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])
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue