PriceUpload.php
805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
namespace artbox\catalog\models;
/**
* This is the model class for table "price_upload".
*
* @property string $sku
* @property string $price
* @property string $price_old
*/
class PriceUpload extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'price_upload';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['sku'], 'required'],
[['price', 'price_old'], 'number'],
[['sku'], 'string', 'max' => 255],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'sku' => 'Sku',
'price' => 'Price',
'price_old' => 'Price Old',
];
}
}