<?php

namespace app\adminapi\model;

use app\common\model\Payment as PaymentModel;
use app\common\model\WithdrawTerminal as WithdrawTerminalModel;

/**
 * @package app\adminapi\model
 * @class WithdrawTerminal
 * @author xzncit 2024/4/13
 */
class WithdrawTerminal extends WithdrawTerminalModel {

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

}