You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
402 B
PHP

<?php
namespace app\common\model;
use think\Model;
class UserRelation extends Model
{
protected $table = 'wc_user_relation';
// 状态:正常
const STATUS_ACTIVE = 1;
// 状态:解除
const STATUS_INVALID = 2;
/**
* 关联用户
* @return \think\model\relation\BelongsTo
*/
public function user()
{
return $this->belongsTo('User');
}
}