I have a situation like this: I have multiple objects in one table and generally my columns depend on the type of object like crane, excavator etc.
My problem is that crane has other params than excavator so a few columns have null
value. I thought I can do another table (attributes
) and add a relation between attributes table and equipment table. Table attributes
would have id
attributeName
attributeValue
equipmentId
and perhaps type
(to define type of value in attributeValue
). Is it a good idea? Maybe exists other solution to this problem?