database schema design about clothes -
I am working on the inventory control of a fashion store, but stuck on the fabric model
There should be a style class,
public class style {String styleNumber; String [] color; String [] size; Int volume; }
Another garment garment:
public class garment {style style; String color; String size; Int volume; }
For example, there are two colors of a style, and each color can have four shapes, therefore, clothing can have 2 * 4, we can have a specific color, or size Need to query the inventory.
Can you give me some hints about this about database schema design? Thank you
This is what you need, I doubt it.
Table: Color ID color 1 Green 2 Red table: Size ID size 1 Small 2 medium table: Apparel ID ID_COLOUR ID_SIZE list 1 1 1 3 1 1 2 1
From this perspective you can choose whether you have rows with a list of 0 or not.
The issue with this approach is that you do not believe in style style, you make them because you have stock in the GARMENT table
if you want to track styles , Then use it:
Table: Color ID color 1 Green 2 red table: Size ID size 1 Small2 Medium table: Style ID ID_COLOUR ID_SIZE 1 1 1 2 1 2 Table: GARMENT ID ID_STYLE LIST 1 1 10 2 2 3
Actual design decisions are essential Rely on s. When you identify the requirements of this database, you should guide on the right approach.
Comments
Post a Comment