Jump to content

Recommended Posts

Good morning,

 

I am working on the database structure of a video system (basically ;) ). This system would keep track of clients views of a video and list who watched the video.

 

Accounts Database

=========================

Accounts | type | name | etc.

 

Video Database

=========================

Name | title | type | etc.

 

Only videos and viewers of the same time will have access to the video. I want to be able to see if a viewer has watch a video and list all viewers. What what I am wondering is where to put the views records? Should I create a view databases

 

Views database

=========================

account | video |

 

Thanks for any assistance.

Link to comment
https://forums.phpfreaks.com/topic/274528-video-views-database-structure/
Share on other sites

Should I create a view databases

 

Definitely.

 

You have a many-to-many relationship where a video is viewed by many users and a user can view many videos. Therefore you need the view table.

Edited by Barand
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.