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 > Database Design Review: Clothing Store

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-12-10, 21:03
IcedDante IcedDante is offline
Registered User
 
Join Date: Nov 2010
Posts: 1
Database Design Review: Clothing Store

I am new-ish to Database Design, and I have designed a database that will be used to hold information for the size of clothes for specific labels at different stores. I wanted to get critiques and suggestions for alternatives on my work.

Let me know what you all think.

Table: Size
This will actually be three tables, each modeling a different type of sizing. There's your standard Small, Medium, Large. Then there's Women's sizing: 00, 0, 2, 4, 6, 8, etc. Finally petite sizing, 0P, 2P, 4P, 6P, etc.

This table will hold an integer that represent the centimeter length for each size. So there will be a SizeStd, SizeSML, and SizePetite table. Each size will be a column and have a primary key generated ID. So, the columns of SizeSML would be:
  • Id
  • XS
  • S
  • M
  • L
  • XL
  • XXL

Table: Measurement
Columns are:
  • Id: Primary Key
  • Type: Secondary Key. This is an enumerated type and can be BUST, WAIST, HIP, INSEAM, or TORSO
  • SizeStdKey
  • SizePetiteKey
  • SizeSMLKey
For the three size keys above one and only one must be specified. This looks like the weakest part of my design, but I'm not sure what better alternative is available.

Table: Clothes
Columns are:
Id (primary key)
MeasurementId (contains a record for each Type enumeration)
BrandId
StoreId
Category (an enumeration with values tops, jeans, bras, etc)
Description (optional)


Other trivial tables:
Brand (A clothing brand)
Id
Name
StoreId

Store
Id
Name

Your help is appreciated. My thanks to the community.
Reply With Quote
Reply

Tags
database design

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