0
Hello, I need to deliver a sales system and I need to make the entity "payment form" one of these sub-classes (card, check, billet or deposit), only one per instance... How to represent the relationship in the EER diagram?
The way it is in the image is wrong, because every instance of "form of payment" will have the foreign keys of all sub-entities, even putting to be DEFAULT NULL will be somehow wrong, how to proceed?
do not make these tables for the types of payment conditions, most of the columns repeat, and if a new condition appears, will have to create another table ?! leave type only as a column within the condition... depending on the condition some columns will be used, others will not, but no problem
– Rovann Linhalis