mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-07 11:12:45 +02:00
Update model casing & associations
This commit is contained in:
@@ -13,13 +13,13 @@ module.exports = (sequelize) => {
|
||||
description: DataTypes.TEXT
|
||||
}, {
|
||||
sequelize,
|
||||
modelName: 'Collection'
|
||||
modelName: 'collection'
|
||||
})
|
||||
|
||||
const { Library } = sequelize.models
|
||||
const { library } = sequelize.models
|
||||
|
||||
Library.hasMany(Collection)
|
||||
Collection.belongsTo(Library)
|
||||
library.hasMany(Collection)
|
||||
Collection.belongsTo(library)
|
||||
|
||||
return Collection
|
||||
}
|
||||
Reference in New Issue
Block a user