We have an Order
entity and a CreditCard
entity.
The Order
can have 0 or 1 CreditCards
.
The CreditCard
can have 1 or more Orders
I understand this to be a one-to-many relationship. BUT we anticipate for the majority of Orders
to not be paid using a CreditCard
, hence the Order table will be full of null references. My understanding being that this is a bad practice.
Is it possible to design the database/entities/mappings some other way to avoid this?