Good evening, I write you after days of "thinking": D
I'm working on a WFM system that allows you to manage activities from the field. But now the request to manage several different activities forced me to redesign the whole DB. Originally only 2 types of activities were handled (Installation, Failures) and all was managed by a single database table with all the columns of one and the other activity. The unused column for a task assumed the null value and was not shown via PHP.
Now I have to understand how to structure a db that has the following characteristics: - the user can configure endless types of different activities (Installation, Failure, Gardening, Reclamation, etc ...) - the user can configure infinite properties / attributes (Client name, Surname, Address, Expiration date, etc ...) - for each activity can be associated many properties (certainly not all) - each property plus being associated with many activities (certainly not all) - each property can take as many values as it is applied (N ° values = property X activity to which it is applied) - the user does not have to choose the table in which to insert the property, whether this is called "Customer cousin name" or "IBAN for payment"
Making a practical example I can have that the properties of customer registry are used for each activity, but maybe the property "Height grass" is used only for the activity "Gardening"
Can someone help me? Thank you