No idea, but my sister works for a photographer like this. She hands each of the people a card to sign their names on on the way in, and the card simply gets the file number stamped on the top when the photo is taken.
My sister is the one lucky enough to get to enter all this data in a database so the photos can be searched by name.