S
S
swcalc2015-06-21 19:47:11
PHP
swcalc, 2015-06-21 19:47:11

How correct is it to create universal tables?

Such a situation, I have 2 types of objects, there is only one difference, one has the "Header" field, the other "Id", to the object (1st type) of which the object of the 2nd is attached. type.
How do GURUs act in such a situation when creating a table?
Make the "Title" field universal or make 2 fields or 2 different tables?
Question about style

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Night, 2015-06-21
@swcalc

If there are two different objects, but they just have similar properties, you should not mold them into one table.
For the simple reason that if a new requirement appears (and it will, sooner or later) that will require significant differences in both objects - you get hit :)
Tip: different objects = different tables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question