The compount foreign key object is primarily used to create compound foreign key relationships between sets of columns. It can also be used to create simple foreign key relationships that link only two columns together (however it usually easier to use the foreign key option on fields directly in this simple case)