Add foreignKey to database.