commit | author | age
|
2207d6
|
1 |
<?php |
W |
2 |
|
|
3 |
namespace app\models; |
|
4 |
|
|
5 |
use Yii; |
|
6 |
|
|
7 |
/** |
|
8 |
* This is the model class for table "{{%order_comments_templates}}". |
|
9 |
* |
|
10 |
* @property int $id |
|
11 |
* @property int $mall_id |
|
12 |
* @property int $mch_id |
|
13 |
* @property int $type 模板类型:1.好评|2.中评|3.差评 |
|
14 |
* @property string $title 标题 |
|
15 |
* @property string $content 内容 |
|
16 |
* @property string $created_at |
|
17 |
* @property string $updated_at |
|
18 |
* @property string $deleted_at |
|
19 |
* @property int $is_delete |
|
20 |
*/ |
|
21 |
class OrderCommentsTemplates extends ModelActiveRecord |
|
22 |
{ |
|
23 |
/** |
|
24 |
* {@inheritdoc} |
|
25 |
*/ |
|
26 |
public static function tableName() |
|
27 |
{ |
|
28 |
return '{{%order_comments_templates}}'; |
|
29 |
} |
|
30 |
|
|
31 |
/** |
|
32 |
* {@inheritdoc} |
|
33 |
*/ |
|
34 |
public function rules() |
|
35 |
{ |
|
36 |
return [ |
|
37 |
[['mall_id', 'created_at', 'updated_at', 'deleted_at'], 'required'], |
|
38 |
[['mall_id', 'mch_id', 'type', 'is_delete'], 'integer'], |
|
39 |
[['created_at', 'updated_at', 'deleted_at'], 'safe'], |
|
40 |
[['title'], 'string', 'max' => 65], |
|
41 |
[['content'], 'string', 'max' => 255], |
|
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 |
'type' => '模板类型:1.好评|2.中评|3.差评', |
|
55 |
'title' => '标题', |
|
56 |
'content' => '内容', |
|
57 |
'created_at' => 'Created At', |
|
58 |
'updated_at' => 'Updated At', |
|
59 |
'deleted_at' => 'Deleted At', |
|
60 |
'is_delete' => 'Is Delete', |
|
61 |
]; |
|
62 |
} |
|
63 |
} |