Update jsdoc defs for models

This commit is contained in:
advplyr 2023-08-24 17:55:29 -05:00
parent e0dae44c7d
commit 1187f91063
4 changed files with 50 additions and 17 deletions

View file

@ -1,11 +1,19 @@
const { DataTypes, Model } = require('sequelize')
const oldPodcastEpisode = require('../objects/entities/PodcastEpisode')
/**
* @typedef ChapterObject
* @property {number} id
* @property {number} start
* @property {number} end
* @property {string} title
*/
class PodcastEpisode extends Model {
constructor(values, options) {
super(values, options)
/** @type {UUIDV4} */
/** @type {string} */
this.id
/** @type {number} */
this.index
@ -33,11 +41,11 @@ class PodcastEpisode extends Model {
this.publishedAt
/** @type {Object} */
this.audioFile
/** @type {Object} */
/** @type {ChapterObject[]} */
this.chapters
/** @type {Object} */
this.extraData
/** @type {UUIDV4} */
/** @type {string} */
this.podcastId
/** @type {Date} */
this.createdAt