#Best Practice: Seasons and Episodes for TV Shows?

39 messages · Page 1 of 1 (latest)

meager oxide
#

I have a collection type called "TV Show" and in it I would like to include all seasons and all episodes. Within each episode will be the release date, run time, title, synopsis, and a few relationships to other collections.

I am hoping to create a custom amount of seasons for each TV show, and inside of each Season add a custom amount of Episodes with the desired fields above.

How would you recommend proceeding with this, to make it as easy to use as possible?

warm krakenBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)

bronze tartan
#

Will you ever need to access specific episodes individually?

meager oxide
#
The Movie Database

This fast-paced and stunt-filled motor show tests whether cars, both mundane and extraordinary, live up to their manufacturers' claims. The long-running show travels to locations around the world, performing extreme stunts and challenges to see what the featured cars are capable of doing. The current hosts are Paddy Mcguinness, Chris Harris and ...

bronze tartan
#

Cool then basically as you described: shows < seasons < episodes

#

Where < is O2M

meager oxide
#

ty 🙂

meager oxide
# bronze tartan Cool then basically as you described: shows < seasons < episodes

Sorry I have another question, would you recommend a many to many relationship where I have Season as a collection type and TV Show as a collection type?

On each TV show I will need to add a release date, synopsis and thumbnail somehow for each season and episode, without it merging or overwriting all other TV shows that also share that same collection type of season 1, episode 1 for example..

Each episode is also tied to another collection type called Vehicle where I connect the vehicles for each of episode each TV show.

Would Directus be able to handle this or is it going a bit beyond the scope of what it’s capable of?

bronze tartan
#

Many to Many makes no sense - an episode is part of one season, which is part of one show

#

Unless I've misunderstood something, it seems pretty clean cut to me

meager oxide
bronze tartan
#

Can you scribble down what you're thinking for a data model? I'm no longer following what you mean

meager oxide
meager oxide
#

Please excuse the messy writing but I hope this gets the idea across.. each TV show (content type) will have their own vehicle relationships (another content type). Unknown number of seasons and episodes per TV show, it depends on the show

meager oxide
pale quarry
#

That's sounds fairly simple. One episode belongs to one season. Season belongs to one TV Show. You can setup reverse relationship too for ease, TV Show has many season, season has many tv show.

meager oxide
bronze tartan
pale quarry
#

The many to one relationship is setup like this :

#

And then you setup one to many from the other side:

meager oxide
#

When I go to the TV Show I would like to see a list of all seasons, all episodes, and all vehicles linked to each episode

#

I have created content types for each now: TV Show, Season, and Episode

bronze tartan
#

I would encourage you to play around with all of the display options because I think it will do what you want

meager oxide
# meager oxide

to get it looking like this for each TV show, I have not found a way to do so yet

#

where I have X number of Seasons, X number of Episodes, and each episode has X number of vehicles... all from the TV Show content type screen

#

Perhaps a better way to visualize this is:
Vehicle -> Add to TV Show
Pick TV Show ... loading new select for season
Pick Season ... loading new select for episode
Pick Episode
Save

#

A vehicle can be added to many TV Shows..
I don't know if Directus can handle this with the "loading new select" part or not

bronze tartan
#

We don't do that

#

You MIGHT be able to build a custom display for it

meager oxide
# bronze tartan We don't do that

Do you know if this feature will be added to Directus in the future? Not sure what to call it.. almost like Tree View but for different child inputs based on the parent

bronze tartan
#

Conditional M2M dropdowns maybe. You can check if there's an open feature request on our GitHub repo and, if not, open one up.

meager oxide
#

Probably not the most efficient... but it might work for the time being...
If the TV Show name ever changes it would be a lot of work to update every season and episode manually

pale quarry
#

Your vehicle m2m relationship between the vehicle and the episode could have additional fields to denormalize some of the data (ex: attach the tv show directly, attach the season directly). That could be automated through flows. But from a UI perspective, Directus isn't an "app builder" per say, you would need to create a custom UI for that (or a custom extension if you want to stay inside Directus)

meager oxide
# pale quarry Your vehicle m2m relationship between the vehicle and the episode could have add...

If I’m building custom to achieve my desired outcomes maybe it would be in my best interest to build my own API. It would be a lot more work but it would mean getting exactly what I need. My concern is with vendor lock in. Now that I have started with Directus and have over 300,000 vehicle entries tied to relationships is this going to be tricky to remove Directus as an added later? Just curious in general.. it has been a nagging question for me as I build. If I start with Directus for a large scale project such as this do I need to stick with Directus for good?