relationship - How to layout a subscriptions database (like youtube)? -


Like Youtube, I have a useful, table with a table (video) and categories with objects.

Now, I want a user to subscribe to a class, but how can I do this effectively? I need a category of a class for which the user sees the member (many-to-many relationships), but I need to keep track of which object (video) the user has not seen yet, how do I is that so?

There is just another table that tracks the video the user sees. Then, after selecting which video to show the user, check against the viewed video table to make sure they do not see it yet.

You can still use this table to show the user a list of all the videos they have visited, or display a complete list of that site, currently viewed on the site etc. going.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -