What is the difference between 0 dB and 0 dBm?

Nothing, they mean the same, one in simply an abreviated form

One refers to analog signals and the other to digital signals

One is relative and the other is absolute