mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-15 08:19:37 +00:00
Add: migrations for authors, series, and podcast episodes
This commit is contained in:
parent
d80752cc9d
commit
1fa80e31d1
4 changed files with 93 additions and 3 deletions
|
|
@ -54,7 +54,13 @@ class BookAuthor extends Model {
|
|||
sequelize,
|
||||
modelName: 'bookAuthor',
|
||||
timestamps: true,
|
||||
updatedAt: false
|
||||
updatedAt: false,
|
||||
indexes: [
|
||||
{
|
||||
name: 'bookAuthor_authorId',
|
||||
fields: ['authorId']
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,13 @@ class BookSeries extends Model {
|
|||
sequelize,
|
||||
modelName: 'bookSeries',
|
||||
timestamps: true,
|
||||
updatedAt: false
|
||||
updatedAt: false,
|
||||
indexes: [
|
||||
{
|
||||
name: 'bookSeries_seriesId',
|
||||
fields: ['seriesId']
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ class PodcastEpisode extends Model {
|
|||
modelName: 'podcastEpisode',
|
||||
indexes: [
|
||||
{
|
||||
fields: ['createdAt']
|
||||
fields: ['createdAt', 'podcastId']
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue