<?php

namespace app\api\model\users;

use app\common\model\Payment as PaymentModel;
use app\common\model\users\UsersWithdraw as UsersWithdrawModel;

/**
 * @package app\api\model\users
 * @class UsersWithdraw
 * @author xzncit 2024/4/14
 */
class UsersWithdraw extends UsersWithdrawModel {

    /**
     * 关联表
     * @return \think\model\relation\HasOne
     */
    public function payment(){
        return $this->hasOne(PaymentModel::class,'id','pay_id')->joinType("LEFT");
    }

}