A night shift is either a group of workers who work during the night, or the period in which they work.
A night shift is a name for a group of workers who work during the night, or it can be the period in which they work.