Creating teacher model and table attributes