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 > Design Questions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-05, 14:15
philburress philburress is offline
Registered User
 
Join Date: Feb 2005
Posts: 4
Design Questions

Greetings,

I have a couple of quick questions about the attached diagram.

1) First of all, what do you think? Any comments or suggestions? This is my first real attempt at designing a database diagram.

1) If I wanted to record user history dates like "login", "user created", etc, where would you suggest putting them? Do you suggest a seperate table for that data or would you append two additional columns to the user table?

2) I need to somehow record the relationships between employee and manager. I've looked at a couple of different ways, but looking for your suggestions on the best way to do this. Not all users will have relationships as there are many different types of user roles.

3) What do you think about storing the userStatus in a separate table? Some have suggested that simple 1:1 "lookup" relationships like this are better defined programatically than in the database. What do you think?
Attached Images
File Type: jpg Database.jpg (29.1 KB, 125 views)
Reply With Quote
  #2 (permalink)  
Old 02-27-05, 20:43
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
I think the first thing I would think about, looking at your diagram, is your normalization of user and user profile. Does it not seem likely that a person (user profile) could have many accounts (user)?

Second should you not have a create timestamp on user? If you are going to have a user status, should you not also have an update timestamp on user and have a one status to many user relationship?

Third, for logins would you not have a one user to many logins relationship, with logins having a time stamp?
Attached Images
File Type: jpg untitled.JPG (46.2 KB, 121 views)
__________________
visit: relationary
Reply With Quote
  #3 (permalink)  
Old 02-28-05, 12:05
philburress philburress is offline
Registered User
 
Join Date: Feb 2005
Posts: 4
I appreciate your feedback, it has helped greatly.

I need to learn how to use Visio better. I hadn't realized I had screwed up the relationships a bit.
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