You can remember the meaning of 同事 with this easy mnemonic:
All of our colleagues have to face the same (同) matter (事) at hand, the fact that we have a horrible boss.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.