I was always under the impression that with the exception of cargo ships the NX-01 was the first Starfleet ship.
I was always convinced that the only other ship (again with the exception of cargo ships) was the NX 02 (at that point in time).
But upon re-watch of the season 2 finale we see several Starfleet ships (not of the NX class) come to the aid of enterprise during the Klingon attack.
So where do these ships fit in to Starfleet history? And they are Starfleet ships as they were wearing the uniform.