create model for visit and material