use eav for model resource