updated model schema