31 lines
951 B
PHP
31 lines
951 B
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | YwxApp [ WE CAN DO IT JUST THINK ]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2026-2036 http://ywxapp.cn All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Author: ywxapp<admin@ywxapp.cn>
|
|
// +----------------------------------------------------------------------
|
|
declare (strict_types = 1);
|
|
|
|
namespace addon\wxchat\model;
|
|
|
|
use think\Model;
|
|
use ywxapp\model\MemberUser;
|
|
|
|
class WxchatFriend extends Model
|
|
{
|
|
protected $name = 'wxchat_friend';
|
|
|
|
protected $autoWriteTimestamp = 'int';
|
|
protected $createTime = 'create_at';
|
|
protected $updateTime = false;
|
|
|
|
// 关联用户
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(MemberUser::class, 'fid', 'uid');
|
|
}
|
|
}
|
|
//php think addon:model wxchat@WxchatMessageRecall
|