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 "{{%auth_role_user}}". |
|
9 |
* |
|
10 |
* @property int $id |
|
11 |
* @property int $role_id |
|
12 |
* @property int $user_id |
|
13 |
* @property int $is_delete |
|
14 |
*/ |
|
15 |
class AuthRoleUser extends ModelActiveRecord |
|
16 |
{ |
|
17 |
/** |
|
18 |
* {@inheritdoc} |
|
19 |
*/ |
|
20 |
public static function tableName() |
|
21 |
{ |
|
22 |
return '{{%auth_role_user}}'; |
|
23 |
} |
|
24 |
|
|
25 |
/** |
|
26 |
* {@inheritdoc} |
|
27 |
*/ |
|
28 |
public function rules() |
|
29 |
{ |
|
30 |
return [ |
|
31 |
[['role_id', 'user_id'], 'required'], |
|
32 |
[['role_id', 'user_id', 'is_delete'], 'integer'], |
|
33 |
]; |
|
34 |
} |
|
35 |
|
|
36 |
/** |
|
37 |
* {@inheritdoc} |
|
38 |
*/ |
|
39 |
public function attributeLabels() |
|
40 |
{ |
|
41 |
return [ |
|
42 |
'id' => 'ID', |
|
43 |
'role_id' => 'Role ID', |
|
44 |
'user_id' => 'User ID', |
|
45 |
'is_delete' => 'Is Delete', |
|
46 |
]; |
|
47 |
} |
|
48 |
} |