The database stores various types of objects for engineering projects: motors, cables, pumps, sensors, etc.
We are discussing whether to have a different table for each type of object? (Heaps of tables, pain, when we want to add a new type of object - what will happen from time to time ...)
Or, as at present, we must have one table in which the types of objects (ID, name) are stored and another table in which the possible attributes for each type of object are stored, and another table in which the values of each attribute for each attribute type? (Real PITA, but flexible.)
Has anyone done something like this? Questions to consider? Implementation?
source
share