Create model and add routes