Seniority is Date of hire. No matter what seat you sit in. I was and FO who upgraded, and i have flown with FOs who are senior to me, and when they upgrade they will push me down.
Seniority is Seat dependent but you maintain it as you upgrade. If a DEC is hired before you, they are going to be senior no matter what.