mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
Add indexes
This commit is contained in:
@@ -16,6 +16,7 @@ model AuthorAnnotation {
|
|||||||
file String? @db.VarChar(256)
|
file String? @db.VarChar(256)
|
||||||
author Author @relation(fields: [author_id], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "fk_author_annotations_authors_id_author")
|
author Author @relation(fields: [author_id], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "fk_author_annotations_authors_id_author")
|
||||||
|
|
||||||
|
@@index([author_id], map: "author_annotation_author_id")
|
||||||
@@map("author_annotations")
|
@@map("author_annotations")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,6 +44,7 @@ model BookAnnotation {
|
|||||||
file String? @db.VarChar(256)
|
file String? @db.VarChar(256)
|
||||||
book Book @relation(fields: [book_id], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "fk_book_annotations_books_id_book")
|
book Book @relation(fields: [book_id], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "fk_book_annotations_books_id_book")
|
||||||
|
|
||||||
|
@@index([book_id], map: "book_annotation_book_id")
|
||||||
@@map("book_annotations")
|
@@map("book_annotations")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
1714
src/prisma.rs
1714
src/prisma.rs
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user