define type model mixin