@Override
protected void defineType(final OClass type) {
type.createProperty(P_NAME, OType.STRING).setMandatory(true).setMax(MAX_NAME_LENGTH).setNotNull(true);
type.createProperty(P_NOTES, OType.STRING).setMandatory(false).setNotNull(false);
type.createProperty(P_FORMAT, OType.STRING).setMandatory(true).setNotNull(true);
type.createProperty(P_MODE, OType.STRING).setMandatory(true).setNotNull(true);
type.createProperty(P_CRITERIA, OType.EMBEDDEDMAP).setMandatory(true).setNotNull(true);
type.createIndex(I_NAME, INDEX_TYPE.UNIQUE, P_NAME);
type.createIndex(I_FORMAT, INDEX_TYPE.NOTUNIQUE, P_FORMAT);
}