final OClass type = schema.createClass(DB_CLASS);
type.createProperty(P_TIMESTAMP, OType.LONG);
type.createProperty(P_TYPE, OType.STRING);
type.createProperty(P_SUBTYPE, OType.STRING);
type.createProperty(P_DATA, OType.EMBEDDEDMAP, OType.STRING);
type.createIndex(I_TYPE, INDEX_TYPE.NOTUNIQUE_HASH_INDEX, P_TYPE);
type.createIndex(I_SUBTYPE, INDEX_TYPE.NOTUNIQUE_HASH_INDEX, P_SUBTYPE);
log.info("Created schema: {}, properties: {}", type, type.properties());
}
}