schema to model generation; field validation; trigger events