mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-04-17 20:49:43 +00:00
Update libraryItem model to include libraryId
This commit is contained in:
parent
d745e6b656
commit
633e83a4ab
7 changed files with 161 additions and 4 deletions
|
|
@ -33,7 +33,10 @@ module.exports = (sequelize) => {
|
|||
modelName: 'libraryItem'
|
||||
})
|
||||
|
||||
const { libraryFolder, book, podcast } = sequelize.models
|
||||
const { library, libraryFolder, book, podcast } = sequelize.models
|
||||
library.hasMany(LibraryItem)
|
||||
LibraryItem.belongsTo(library)
|
||||
|
||||
libraryFolder.hasMany(LibraryItem)
|
||||
LibraryItem.belongsTo(libraryFolder)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue