23 lines
416 B
PHP
23 lines
416 B
PHP
|
<?php
|
||
|
namespace app\common\model;
|
||
|
|
||
|
use think\Model;
|
||
|
|
||
|
class User extends Model
|
||
|
{
|
||
|
protected $table = 'wc_user';
|
||
|
|
||
|
// 状态:正常
|
||
|
const STATUS_ACTIVE = 1;
|
||
|
// 状态:禁用
|
||
|
const STATUS_INVALID = 2;
|
||
|
|
||
|
/**
|
||
|
* 关联好友列表
|
||
|
* @return \think\model\relation\HasMany
|
||
|
*/
|
||
|
public function userRelation()
|
||
|
{
|
||
|
return $this->hasMany('UserRelation', 'uid', 'id');
|
||
|
}
|
||
|
}
|