if (fields.get("min") != null)
prop.setMin(fields.get("min"));
if (fields.get("max") != null)
prop.setMax(fields.get("max"));
if (fields.get("indexed") != null)
prop.createIndex(fields.get("indexed").equals("Unique") ? OProperty.INDEX_TYPE.UNIQUE : OProperty.INDEX_TYPE.NOTUNIQUE);
db.getMetadata().getSchema().save();
sendTextContent(iRequest, OHttpUtils.STATUS_OK_CODE, "OK", null, OHttpUtils.CONTENT_TEXT_PLAIN,
"Property " + fields.get("name") + " created successfully with id=" + prop.getId());