mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-04 15:09:44 +00:00
Update model casing & associations
This commit is contained in:
parent
2131a65299
commit
54ca58e610
45 changed files with 830 additions and 561 deletions
|
|
@ -23,12 +23,12 @@ module.exports = (sequelize) => {
|
|||
publishedAt: DataTypes.DATE
|
||||
}, {
|
||||
sequelize,
|
||||
modelName: 'PodcastEpisode'
|
||||
modelName: 'podcastEpisode'
|
||||
})
|
||||
|
||||
const { Podcast } = sequelize.models
|
||||
Podcast.hasMany(PodcastEpisode)
|
||||
PodcastEpisode.belongsTo(Podcast)
|
||||
const { podcast } = sequelize.models
|
||||
podcast.hasMany(PodcastEpisode)
|
||||
PodcastEpisode.belongsTo(podcast)
|
||||
|
||||
return PodcastEpisode
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue