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 > Database Server Software > MySQL > Relational database design(first time)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-24-11, 01:32
Jwomack Jwomack is offline
Registered User
 
Join Date: Aug 2011
Posts: 1
Question Relational database design(first time)

im making a website so that our school students can post notes from their classes and share them with their friends that are in their classes but im not sure what the table structures would be like to get all this working.

i have a uml class diagram of what i have come up with for the design tables but im not sure how to make it.

https://creately.com/diagram/gqo8704...7S4F1IBYRzQ%3D

if someone could please design this for me and post back or pm me the sql code please that would be very helpful indeed
Reply With Quote
  #2 (permalink)  
Old 08-24-11, 03:21
aflorin27 aflorin27 is offline
Registered User
 
Join Date: Apr 2008
Location: Iasi, Romania
Posts: 317
Those class1...class7 fields in the User table are not a very smart idea, as they might impose some undesired future constraints.
You might want to create another table, named UserClasses (userID, ClassID)
Also, you may add a noteDateTime field in the Notes table
__________________
Florin Aparaschivei
Iasi, Romania
Reply With Quote
Reply

Tags
design, relational database

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