I'm currently starting a rewrite of an inventory system. One of the challenges is that about 50% of the products are of a particular category, that has many properties that don't apply to the other products. Some example properties that only apply to the first 50% are Width, Height, Die Lot, IsGlazed, etc.
One of the other programmers has proposed that we make one main Products table that has all fields that are common to all types of products. Then we make a secondary Products table that has these extra fields that only apply to this special category. The relation between the main and secondary table would be one-to-(zero-or-one).
The goal here is to not have a bunch of fields that don't apply to 50% of the products.
What are your opinions or alternatives to this solution?
One of the other programmers has proposed that we make one main Products table that has all fields that are common to all types of products. Then we make a secondary Products table that has these extra fields that only apply to this special category. The relation between the main and secondary table would be one-to-(zero-or-one).
The goal here is to not have a bunch of fields that don't apply to 50% of the products.
What are your opinions or alternatives to this solution?