Enemies taking damage - help please

Hi, could anyone help me with my enemies taking damage? I have this script on my player

if (hit.collider.tag == "Enemy") {
			hit.collider.SendMessageUpwards("ApplyDamage", damage, SendMessageOptions.DontRequireReceiver);	

What script would I need to put on my enemy for them to take damage? I’m pretty new to unity and i’m not sure how to make them take damage. Thank you <3

I would rather add a script to the enemy that checks for

if (hit.collider.tag == "Bullet" || hit.collider.tag == "ThrowingKnife")

(for example, that way you could even seperate bullet from throwing knife damage or just tag them both as “weapon”) And then applies damage to itself.