mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-25 10:19:04 +02:00
Update Dockerfile for sqlite3, update models for cascade delete, fix backup schedule
This commit is contained in:
parent
254ba1f089
commit
f73a0cce72
20 changed files with 67 additions and 31 deletions
|
@ -77,7 +77,9 @@ module.exports = (sequelize) => {
|
|||
})
|
||||
|
||||
const { library } = sequelize.models
|
||||
library.hasMany(Author)
|
||||
library.hasMany(Author, {
|
||||
onDelete: 'CASCADE'
|
||||
})
|
||||
Author.belongsTo(library)
|
||||
|
||||
return Author
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue