Model plugin for nails-framework