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 "{{%topic_favorite}}". |
|
9 |
* |
|
10 |
* @property int $id |
|
11 |
* @property int $mall_id |
|
12 |
* @property int $user_id |
|
13 |
* @property int $topic_id |
|
14 |
* @property int $is_delete |
|
15 |
* @property string $deleted_at |
|
16 |
* @property string $created_at |
|
17 |
* @property string $updated_at |
|
18 |
*/ |
|
19 |
class TopicFavorite extends ModelActiveRecord |
|
20 |
{ |
|
21 |
/** |
|
22 |
* {@inheritdoc} |
|
23 |
*/ |
|
24 |
public static function tableName() |
|
25 |
{ |
|
26 |
return '{{%topic_favorite}}'; |
|
27 |
} |
|
28 |
|
|
29 |
/** |
|
30 |
* {@inheritdoc} |
|
31 |
*/ |
|
32 |
public function rules() |
|
33 |
{ |
|
34 |
return [ |
|
35 |
[['mall_id', 'user_id', 'topic_id', 'deleted_at', 'created_at', 'updated_at'], 'required'], |
|
36 |
[['mall_id', 'user_id', 'topic_id', 'is_delete'], 'integer'], |
|
37 |
[['deleted_at', 'created_at', 'updated_at'], 'safe'], |
|
38 |
]; |
|
39 |
} |
|
40 |
|
|
41 |
/** |
|
42 |
* {@inheritdoc} |
|
43 |
*/ |
|
44 |
public function attributeLabels() |
|
45 |
{ |
|
46 |
return [ |
|
47 |
'id' => 'ID', |
|
48 |
'mall_id' => 'Mall ID', |
|
49 |
'user_id' => 'User ID', |
|
50 |
'topic_id' => 'Topic ID', |
|
51 |
'is_delete' => 'Is Delete', |
|
52 |
'deleted_at' => 'Deleted At', |
|
53 |
'created_at' => 'Created At', |
|
54 |
'updated_at' => 'Updated At', |
|
55 |
]; |
|
56 |
} |
|
57 |
} |