If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Review media tracking DB model

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-06, 00:10
kovi_rago kovi_rago is offline
Registered User
 
Join Date: Mar 2006
Posts: 17
Review media tracking DB model

Hi, I was wondering if someone could look over this simple design I have for a media tracking system. I have mainly the media table and sound/image/video/text tables. So, a person can make a request for a media. (check table). This request would be either - initial, checked out, checked in. (check_request table).

I was wondering if this format is a good design.. Any input would be much appreciated.

Thanks.
Attached Thumbnails
Review media tracking DB model-document_dbmodel.png  
Reply With Quote
  #2 (permalink)  
Old 03-03-06, 09:36
urquel urquel is offline
Registered User
 
Join Date: Aug 2004
Posts: 330
Is Media your supertype with Image, Sound, Video, and Text as subtypes?

Is filetype_id the supertype/subtype discriminator?

Is there an alternate key on Media.check_id?
Reply With Quote
  #3 (permalink)  
Old 03-04-06, 05:44
kovi_rago kovi_rago is offline
Registered User
 
Join Date: Mar 2006
Posts: 17
Thank you very much for the reply.

1. I didn't really think about that at first.. I'm still new and learning about databases, modelling and all that. Looking at it now, yes, media would be the supertype. I'm not sure how that would be implemented though. (Something I need to learn..)

2. filetype_id was supposed to be for a reference table of common filetype extensions. I've updated the model to include that. But, since the image/sound/etc tables are subtypes, do they require this discriminator key, or is the primary key (image_id, sound_id) enough?

3. I'm not sure what you mean by that. Are you saying that the key for media is not unique enough, thus requiring an alternate key?

Thanks again.
Attached Thumbnails
Review media tracking DB model-media_tracking_030206.png  
Reply With Quote
  #4 (permalink)  
Old 03-06-06, 11:04
urquel urquel is offline
Registered User
 
Join Date: Aug 2004
Posts: 330
What I meant by the alternate key on Media.check_id was that I am assuming that since you have a 0/1 to 0/1 cardinality between check and media, you would want to enforce no more than one check per media.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On