In my database I store a media, eg. movies, series (seasons, episodes), music (groups, albums, tracks). All this data is stored in single table (Media). Question: how should I work with this table in my code? I have two options:
- Create single repository and one large model for all media types.
- Create model and repository for each media type.
Which is better and why?
Aucun commentaire:
Enregistrer un commentaire