Re: Help with database schema for e-commerce paint shop
Posted by: Rick James
Date: December 08, 2010 01:36AM

There are international issues, such as assuming two decimal places for Price.

Just one phone number?

INT(4) -- consider SMALLINT.

Consider UNSIGNED where appropriate.

NULL vs NOT NULL?

If you are keeping credit card numbers, you have serious legal implications if anyone every hacks into your database.

colour_set VARCHAR(45) -- what is that?
colour_id VARCHAR(40) -- ?
paint_colour_id INT(4) -- ?

I can't see the indexes. I'm guessing that the first field in each table is the PRIMARY KEY?

Go for it!

Now let's see the SELECTs.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.