Update Dockerfile for sqlite3, update models for cascade delete, fix backup schedule

This commit is contained in:
advplyr committed 2023-07-09 11:39:15 -05:00
1 parent 254ba1f089
commit f73a0cce72
20 files changed
+67 -31

No files matched your search

+3 -1
View File
@@ -77,7 +77,9 @@ module.exports = (sequelize) => {
})
const { library } = sequelize.models
library.hasMany(Author)
library.hasMany(Author, {
onDelete: 'CASCADE'
})
Author.belongsTo(library)
return Author