rating in teacher show and uniqueness in model