mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 19:01:41 +00:00
Add isDownloadable bool to MediaItemShare model
This commit is contained in:
parent
b3490798f0
commit
9ef45686ac
1 changed files with 6 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ const { DataTypes, Model } = require('sequelize')
|
||||||
* @property {Object} extraData
|
* @property {Object} extraData
|
||||||
* @property {Date} createdAt
|
* @property {Date} createdAt
|
||||||
* @property {Date} updatedAt
|
* @property {Date} updatedAt
|
||||||
|
* @property {boolean} isDownloadable
|
||||||
*
|
*
|
||||||
* @typedef {MediaItemShareObject & MediaItemShare} MediaItemShareModel
|
* @typedef {MediaItemShareObject & MediaItemShare} MediaItemShareModel
|
||||||
*/
|
*/
|
||||||
|
|
@ -25,6 +26,7 @@ const { DataTypes, Model } = require('sequelize')
|
||||||
* @property {Date} expiresAt
|
* @property {Date} expiresAt
|
||||||
* @property {Date} createdAt
|
* @property {Date} createdAt
|
||||||
* @property {Date} updatedAt
|
* @property {Date} updatedAt
|
||||||
|
* @property {boolean} isDownloadable
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class MediaItemShare extends Model {
|
class MediaItemShare extends Model {
|
||||||
|
|
@ -40,7 +42,8 @@ class MediaItemShare extends Model {
|
||||||
slug: this.slug,
|
slug: this.slug,
|
||||||
expiresAt: this.expiresAt,
|
expiresAt: this.expiresAt,
|
||||||
createdAt: this.createdAt,
|
createdAt: this.createdAt,
|
||||||
updatedAt: this.updatedAt
|
updatedAt: this.updatedAt,
|
||||||
|
isDownloadable: this.isDownloadable
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -114,7 +117,8 @@ class MediaItemShare extends Model {
|
||||||
slug: DataTypes.STRING,
|
slug: DataTypes.STRING,
|
||||||
pash: DataTypes.STRING,
|
pash: DataTypes.STRING,
|
||||||
expiresAt: DataTypes.DATE,
|
expiresAt: DataTypes.DATE,
|
||||||
extraData: DataTypes.JSON
|
extraData: DataTypes.JSON,
|
||||||
|
isDownloadable: DataTypes.BOOLEAN
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
sequelize,
|
sequelize,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue