refactored code so you pass the data adapter to just the base repository instead of both the base repository and base model
added permission-hook model file (forgot to add that file in the last commit)