create model and schema