Exactly as you've done it.
Either manually through big-M
intvar x
intvar z
binvar y
Model = [0 <= z <= 100, 0<= x <= 100*y,0 <= z-x <= 100*(1-y)
or automatically using implies (which derives the big-M model
Model = [0 <= z <= 100,implies(y,x==0), implies(1-y,x==z)];
or through the general binmodel command for polynomial expressions
Model = [0 <= z <= 100];
Model2 = binmodel(z*y,Model);
Model = [Model,Model2];