Foreign key with multiple references
The comment from @ypercube is right.

You shall model an intermediary table to be able to enforce FKs:



A less formal model, in which FK enforcement would not be possible, could be: