I know it may be odd to ask this kind of question but I would be glad to hear your edits and advice on this case.
let's say I have tables named products and properties that things like color , size , volume and ... are stored in properties table. I have trouble how to store properties of my products like a Tshirt having colors blue , green and sizes Large and small.
The way I already tried is using JSON in product table like this :
{color : 'red' , size : 'large' , available : 1} , {color : 'red' , size : 'small' , available : 0 } , {color :blue : size : Medium , available : 1}
, ...
but it doesn't seem good since properties would have a lot of attributes and the JSON gets too big Any suggestions would be welcomed
P.S. I'm using laravel to develop My application.