Add index attribute to resource schema field create API