['param', 'integer', 'min' => '1', 'max' => '9', 'when' => function($m) {
return $m->param == 'sku_max';
}],
['param', 'in', 'range' => range(1, 9)],
'price' => $this->decimal(10, 2) // DECIMAL
'name' => $this->string(32) // varchar
либо 'name' => $this->char(8)
['zip', 'exists', 'targetClass' => ZipKz::className(), 'targetAttribute' => ['zip_old', 'zip_new'], 'when' => function($model){
return $model->geo == 'KZ';
}],