When we talk about algebraic structures, we can say things like: ($\mathbb{Z}$,+,$\cdot$), which I think is a ring; while in first-order theories, it is typical to see a theory defined like {0, 1, +, ·, =}, which I think is Peano arithmetic).
I see a close similarity between them, could anyone explain if they are the same or why not?
There are three distinct concepts here:
I've just given you a very quick summary. For the precise definitions, pick up literally any introductory logic textbook that covers first-order logic.