NA5W-K relay

I drawed what you say,

The diode may very well be drawn backwards and if installed that way will short out the output pin when turned on high and burn out the pin. Diodes don't have a + and - sign on then, they have a cathode identification mark. In your example you would want the cathode to wire to the output pin and the anode lead to wire to the ground pin.

By the way if your relay has + and - labeled on the coil terminals then is must already have an internal diode wired across the coil. Some DC relays have an internal diode option avalible and many do not, check your datasheet.

Lefty