54 lines
1.2 KiB
PHP
54 lines
1.2 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace common\modelsgii;
|
||
|
|
|
||
|
|
use Yii;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This is the model class for table "yii_service_user_token".
|
||
|
|
*
|
||
|
|
* @property int $id
|
||
|
|
* @property int $su_id 服务端用户id
|
||
|
|
* @property string $token 用户token
|
||
|
|
* @property int $is_disable 是否禁用,主动退出后=1
|
||
|
|
* @property int $created_at
|
||
|
|
* @property int $updated_at
|
||
|
|
*/
|
||
|
|
class ServiceUserToken extends \common\core\BaseActiveRecord
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* {@inheritdoc}
|
||
|
|
*/
|
||
|
|
public static function tableName()
|
||
|
|
{
|
||
|
|
return 'yii_service_user_token';
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* {@inheritdoc}
|
||
|
|
*/
|
||
|
|
public function rules()
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
[['su_id'], 'required'],
|
||
|
|
[['su_id', 'is_disable', 'created_at', 'updated_at'], 'integer'],
|
||
|
|
[['token'], 'string', 'max' => 255],
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* {@inheritdoc}
|
||
|
|
*/
|
||
|
|
public function attributeLabels()
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'id' => 'ID',
|
||
|
|
'su_id' => '服务端用户id',
|
||
|
|
'token' => '用户token',
|
||
|
|
'is_disable' => '是否禁用,主动退出后=1',
|
||
|
|
'created_at' => 'Created At',
|
||
|
|
'updated_at' => 'Updated At',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|