mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
Update model casing & associations
This commit is contained in:
parent
2131a65299
commit
54ca58e610
45 changed files with 830 additions and 561 deletions
|
|
@ -12,12 +12,12 @@ module.exports = (sequelize) => {
|
|||
path: DataTypes.STRING
|
||||
}, {
|
||||
sequelize,
|
||||
modelName: 'LibraryFolder'
|
||||
modelName: 'libraryFolder'
|
||||
})
|
||||
|
||||
const { Library } = sequelize.models
|
||||
Library.hasMany(LibraryFolder)
|
||||
LibraryFolder.belongsTo(Library)
|
||||
const { library } = sequelize.models
|
||||
library.hasMany(LibraryFolder)
|
||||
LibraryFolder.belongsTo(library)
|
||||
|
||||
return LibraryFolder
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue