Add foreign keys for dependent tables.