fieldType

const fieldType = optional(enums([0, 1]));
Example
    
const cities = coreApp.odm.newModel("city", locationPure, {
  country: {
    schemaName: "country",
    type: "single",
    optional: false,
    relatedRelations: {
      cities: {
        type: "multiple",
        limit: 5,
        sort: {
          field: "_id",
          order: "asc",
        },
      },
    },
  },
});
      

const fieldType = coreApp.schemas.fieldType;

Return Of Example
    
{
  "type": "enums",
  "schema": {
    "0": 0,
    "1": 1
  }
}