<?php

namespace app\api\model\promotion;

use app\common\model\goods\Goods as GoodsModel;
use app\common\model\promotion\Limit as LimitModel;

/**
 * @package app\api\model\promotion
 * @class Limit
 * @author xzncit 2024/3/24
 */
class Limit extends LimitModel {

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

}