commit | author | age
|
90c639
|
1 |
<?php |
Z |
2 |
|
|
3 |
namespace app\models; |
|
4 |
|
|
5 |
use Yii; |
|
6 |
|
|
7 |
/** |
|
8 |
* This is the model class for table "{{%goods_params_template}}". |
|
9 |
* |
|
10 |
* @property int $id |
|
11 |
* @property int $mall_id |
|
12 |
* @property int $mch_id |
|
13 |
* @property string $name 模板名称 |
|
14 |
* @property string $content 参数内容 |
|
15 |
* @property string $select_data 搜索使用 |
|
16 |
* @property int $is_delete |
|
17 |
* @property string $created_at |
|
18 |
* @property string $deleted_at |
|
19 |
*/ |
|
20 |
class GoodsParamsTemplate extends ModelActiveRecord |
|
21 |
{ |
|
22 |
/** |
|
23 |
* {@inheritdoc} |
|
24 |
*/ |
|
25 |
public static function tableName() |
|
26 |
{ |
|
27 |
return '{{%goods_params_template}}'; |
|
28 |
} |
|
29 |
|
|
30 |
/** |
|
31 |
* {@inheritdoc} |
|
32 |
*/ |
|
33 |
public function rules() |
|
34 |
{ |
|
35 |
return [ |
|
36 |
[['mall_id', 'name'], 'required'], |
|
37 |
[['mall_id', 'mch_id', 'is_delete'], 'integer'], |
|
38 |
[['content', 'select_data'], 'string'], |
|
39 |
[['created_at', 'deleted_at'], 'safe'], |
|
40 |
[['name'], 'string', 'max' => 100], |
|
41 |
|
|
42 |
]; |
|
43 |
} |
|
44 |
|
|
45 |
/** |
|
46 |
* {@inheritdoc} |
|
47 |
*/ |
|
48 |
public function attributeLabels() |
|
49 |
{ |
|
50 |
return [ |
|
51 |
'id' => 'ID', |
|
52 |
'mall_id' => 'Mall ID', |
|
53 |
'mch_id' => 'Mch ID', |
|
54 |
'name' => '模板名称', |
|
55 |
'content' => '参数内容', |
|
56 |
'select_data' => '搜索使用', |
|
57 |
'is_delete' => 'Is Delete', |
|
58 |
'created_at' => 'Created At', |
|
59 |
'deleted_at' => 'Deleted At', |
|
60 |
]; |
|
61 |
} |
|
62 |
} |