Hello. I'm trying to create a database for a sweater company and I can't quite realize how to store the products in the database. Each sweater can be produced in several sizes like XS, S, M, L and XL but not necessarily all at once (some modl may only be available in the bigger sizes). Also, each sweater model can be made, in each of its sizes, with many different colours. This means that, for example, sweater model xyz size XS is produced in red and blue, but xyz XL can only be found in green colour. Finally, there's the stock information ('high', low' or 'by request').
The two ideas I came up with are very rudimentary and inelegant. One is to have a table listing one sweater model in each row and store an array in one column going something like this: XS,#FFC,#234,S,#FFF,#CCC,#111,M,#F0F,#000......... .........
The other is to create a table listing all the combined options i talked about in the beggining. Of course, that would create a huge monstruous table, I'd guess with more than 2500 rows. Since it is a medium company, I don't expect huge traffic, but I should especulate with the performance of my hosting's computers.
Well, that's it. I hope this question isn't terribly inadecuate by this forum0s standard.
Thanks in advance!