So I have a LOT of ores and enemies in my game and I want an easy way to handle them. I have seen some programmers use things like this

local Ores =
{
	Iron = {health = 100, coins = 5, xp = 5},
	Diamond = {health = 100, coins = 5, xp = 5}
}

and

local Enemies =
{
	Zombie = {health = 100, coins = 10, xp = 10},
	Skeleton = {health = 150, coins = 15, xp = 15}
}

So i'm going to assume this approach is what OOP is. How would I use it in my games? Say I made my iron ore and everything how would I apply the table above to the ore?