use foreign_key instead of primary_key