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 > Redundant tables

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-16-10, 03:54
d99 d99 is offline
Registered User
 
Join Date: Feb 2010
Posts: 2
Redundant tables

Hello

In this relationship diagram,

the tables permission_lookups and permission_objects appear to my mind redundant.

Any comments on the design of this database?

Thanks
D
Reply With Quote
  #2 (permalink)  
Old 02-16-10, 04:09
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
It looks like someone has tried to create a sub type - super type design but not quite cracked it. For example, I would expect owner_id to be removed from documents and folders and placed in permission_lookups. Then there would be a single relationship to user for that column instead of the two that there are currently.

Admittedly I'm a little less clear on the role of permission_objects.
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
  #3 (permalink)  
Old 02-16-10, 06:26
d99 d99 is offline
Registered User
 
Join Date: Feb 2010
Posts: 2
Was the architect possibly following some template when he designed these tables?
Best practices for permissions?
Reply With Quote
  #4 (permalink)  
Old 02-16-10, 08:51
MarkATrombley MarkATrombley is offline
Registered User
 
Join Date: Jul 2009
Location: Michigan
Posts: 125
The table and column names aren't consistent which makes me suspect this was designed by somebody who didn't know what they were doing. Certainly they weren't following a best practice.
Reply With Quote
Reply

Thread Tools
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