I have shifts that work like this:
Shift horaIni horaFin 0 A 00:00:00 08:00:00 1 B 08:00:00 16:00:00 2 C 16:00:00 23:59:59