add model and schema for prefs