Add db migration file to change audiobooks to library items with new data model

This commit is contained in:
advplyr
2022-03-09 19:23:17 -06:00
parent 65793f7109
commit b97ed953f7
17 changed files with 719 additions and 127 deletions

View File

@ -6,7 +6,7 @@ class EBookFile {
this.metadata = null
this.ebookFormat = null
this.addedAt = null
this.lastUpdate = null
this.updatedAt = null
if (file) {
this.construct(file)
@ -18,7 +18,7 @@ class EBookFile {
this.metadata = new FileMetadata(file)
this.ebookFormat = file.ebookFormat
this.addedAt = file.addedAt
this.lastUpdate = file.lastUpdate
this.updatedAt = file.updatedAt
}
toJSON() {
@ -27,7 +27,7 @@ class EBookFile {
metadata: this.metadata.toJSON(),
ebookFormat: this.ebookFormat,
addedAt: this.addedAt,
lastUpdate: this.lastUpdate
updatedAt: this.updatedAt
}
}
}