Hi guys,
I'm working on a fashion store's inventory control, but stuck at the clothing model.
There should be a Style class,
public class Style{
String styleNumber;
String[] colors;
String[] sizes;
int quantity;
}
And also a detail Garment:
public class Garment{
Style style;
String color;
String size;
int quantity;
}
For example, one style has two colors, and each color might has four sizes, therefore, the garments might have 2*4 . We need to query inventory of specific color, or size.
Could you guys give me some hints about the database schema design about this? Thank you.