commit | author | age
|
2207d6
|
1 |
<?php |
W |
2 |
|
|
3 |
namespace app\models; |
|
4 |
|
|
5 |
use Yii; |
|
6 |
use app\models\ModelActiveRecord; |
|
7 |
|
|
8 |
/** |
|
9 |
* This is the model class for table "{{%live_goods}}". |
|
10 |
* |
|
11 |
* @property int $id |
|
12 |
* @property int $mall_id |
|
13 |
* @property int $goods_id |
|
14 |
* @property int $audit_id |
|
15 |
*/ |
|
16 |
class LiveGoods extends ModelActiveRecord |
|
17 |
{ |
|
18 |
/** |
|
19 |
* {@inheritdoc} |
|
20 |
*/ |
|
21 |
public static function tableName() |
|
22 |
{ |
|
23 |
return '{{%live_goods}}'; |
|
24 |
} |
|
25 |
|
|
26 |
/** |
|
27 |
* {@inheritdoc} |
|
28 |
*/ |
|
29 |
public function rules() |
|
30 |
{ |
|
31 |
return [ |
|
32 |
[['mall_id', 'goods_id', 'audit_id'], 'required'], |
|
33 |
[['mall_id', 'goods_id', 'audit_id'], 'integer'], |
|
34 |
]; |
|
35 |
} |
|
36 |
|
|
37 |
/** |
|
38 |
* {@inheritdoc} |
|
39 |
*/ |
|
40 |
public function attributeLabels() |
|
41 |
{ |
|
42 |
return [ |
|
43 |
'id' => 'ID', |
|
44 |
'mall_id' => 'Mall ID', |
|
45 |
'goods_id' => 'Goods ID', |
|
46 |
'audit_id' => 'Audit ID', |
|
47 |
]; |
|
48 |
} |
|
49 |
} |