INT-3384:use enum for schematype