<?php

namespace app\api\model\promotion;

use app\common\model\goods\Goods as GoodsModel;
use app\common\model\promotion\Bargain as BargainModel;

/**
 * @package app\api\model\promotion
 * @class Bargain
 * @author xzncit 2024/3/26
 */
class Bargain extends BargainModel {

    /**
     * 关联表
     * @return \think\model\relation\HasOne
     */
    public function goods(){
        return $this->hasOne(GoodsModel::class,'id','goods_id');
    }

}