thinkphp-wechat/application/common/model/User.php

23 lines
416 B
PHP
Raw Normal View History

2021-12-24 16:40:05 +08:00
<?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');
}
}