made associations with tables with two foreign keys from a table to a single table