partial implementation of model+crud for triggers