advanced model code: indexable, schema conversion, validations