General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 10th, 2004, 01:07 PM
gat gat is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 24 gat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Data Modeling...some help please?

Hello i am currently trying to design the DB for my web project
http://art.uk-graffiti.co.uk

Users can submit artwork into the digital gallery, so users can have one or many pieces of art in the gallery.

Users can comment on images in the gallery, so users can have one or many comments and each piece of art work can have one or many comments.

Users also have the oppertunity to enter a biog about them selves..so one user will have one biog.

So this means i have 4 tables

USERS
ARTWORK
COMMENTS
BIOG

thing im not sure about is what keys to have in each table so the relations work and so that its fully normalised.

Im guessing...

USER
User_ID
Username
f_name
s_name
location

ARTWORK
Art_ID
Medium
Name
Date
User_ID

COMMENTS
Comment_ID
Text
Date
Art_ID
User_ID

BIOG
Biog_ID
Biog
User_ID

would this work?
many thanks...

Reply With Quote
  #2  
Old February 10th, 2004, 05:58 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
You got it spot on gat! My only suggestion is avoid using reserved words for field names such as "text", "date", "name".

PS - you need to add some left/right margin to your user login box on your site to make it consistent w/ the other boxs.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old February 10th, 2004, 06:03 PM
gat gat is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 24 gat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by stumpy
PS - you need to add some left/right margin to your user login box on your site to make it consistent w/ the other boxs.


yeh, its one of those..."it looks ok in DW but not in the browser" cases...

i wasnt sure how to set the peramiters for it, the input boxes seem to be stuck at a defalt size.

could you enlighten me as of how to change this..?

many thanks

Reply With Quote
  #4  
Old February 10th, 2004, 06:39 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
In your CSS
Code:
input {
  font-size : 11px;
}
If your login box is a div/ID, then combine that name with the input rule, so that only the input box's within that div are effected.
Code:
#loginBox input {
  font-size : 11px;
}

Reply With Quote
  #5  
Old February 11th, 2004, 06:32 AM
gat gat is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 24 gat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for that, there is so much you can do with CSS....i need a book on it.

Anyway, i have to add some complexity to my database and to the way in which data is to be accessed.

I have come up with this.


Does this look ok...and can you understand what is going on with the data.

Just think what a user would want when comming to browse an art site.

Any help or suggestions are much appreciated.
Many Thanks

Reply With Quote
  #6  
Old February 11th, 2004, 06:43 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Your schema looks fabbo gat - have you recently done/doing a course in DB design?

For a good model on organising an art site, check out deviantart.com...if u haven't already.

Reply With Quote
  #7  
Old February 11th, 2004, 06:57 AM
gat gat is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 24 gat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks...
Thing is....this is my final year uni project....so it has to have a fair bit of complexity.

Can you see how all the information is working? and is there anything else you can think of that a user would be looking for when browsing an art site?

I was thinking about including a rating system, so that each image could be rated out of 10...and top images can be displayed dynamically on the home page.

however i dont think that this would need a new table, could probably just go in the comments table, so when a user leaves a comment on an image...he/she also rates it out of ten.

But is there anything else that you would think i could add, just to beef it up a bit?

probably do the gallerys in a similar way to my original site
www.uk-graffiti.co.uk

thanks man

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > Data Modeling...some help please?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT