Details.php
1.55 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "w_details".
*
* @property integer $ID
* @property integer $IMPORT_ID
* @property string $BRAND
* @property string $ARTICLE
* @property string $FULL_ARTICLE
* @property double $PRICE
* @property string $DESCR
* @property integer $BOX
* @property integer $ADD_BOX
* @property string $GROUP
* @property string $timestamp
*/
class Details extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'w_details';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['IMPORT_ID', 'BRAND', 'ARTICLE', 'FULL_ARTICLE', 'PRICE', 'DESCR', 'BOX'], 'required'],
[['IMPORT_ID', 'BOX', 'ADD_BOX'], 'integer'],
[['PRICE'], 'number'],
[['timestamp'], 'safe'],
[['BRAND', 'ARTICLE'], 'string', 'max' => 100],
[['FULL_ARTICLE'], 'string', 'max' => 150],
[['DESCR', 'GROUP'], 'string', 'max' => 200]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'ID' => 'ID',
'IMPORT_ID' => 'Import ID',
'BRAND' => 'Brand',
'ARTICLE' => 'Article',
'FULL_ARTICLE' => 'Full Article',
'PRICE' => 'Price',
'DESCR' => 'Descr',
'BOX' => 'Box',
'ADD_BOX' => 'Add Box',
'GROUP' => 'Group',
'timestamp' => 'Timestamp',
];
}
}