For ESD, you might implement an N-Diode by placing an n-well in the p-sub
A P-Diode by placing a P-diff within an N-well (within P-sub).
But this isn’t a rule, you can make both in poly too.
Another definition of N-diode and P-diode is whichever terminal is more heavily doped (matches ESD requirement)