I am working on inventory management for a clothing store, but I stuck with a clothing model.
Must have a Style class,
public class Style{
String styleNumber;
String[] colors;
String[] sizes;
int quantity;
}
As well as the item of clothing:
public class Garment{
Style style;
String color;
String size;
int quantity;
}
For example, one style has two colors, and each color can have four sizes, so clothes can have 2 * 4. We need to request an inventory of a certain color or size.
Could you guys give me some tips on the database schema schema? Thank.
source
share