Teacher code instead of teacher id in departments families