diff --git a/backend/services/seasonService.js b/backend/services/seasonService.js new file mode 100644 index 0000000..ef2af73 --- /dev/null +++ b/backend/services/seasonService.js @@ -0,0 +1,43 @@ +const Entry = require('../models/Entry.js') +const EntryId = require('../models/EntryId.js') +const EntryRating = require('../models/EntryRating.js'); +const Season = require('../models/Season.js'); +const EntryGenre = require('../models/EntryGenre.js'); +const EntrySeen = require('../models/EntrySeen.js'); + +async function saveSeason(entryId) { + // fetch data from tmdb + + // save season to db + +} + + +async function updateSeason(seasonId) { + // fetch season form db + + // fetch data from tmdb + + // update fields + + // save + +} + + +async function getSeason() { + +} + + +async function deleteSeason() { + +} + + +module.exports = { + saveSeason, + updateSeason, + getSeason, + deleteSeason, +} \ No newline at end of file