<?php

namespace app\api\model\promotion;

use app\common\model\goods\Goods as GoodsModel;
use app\common\model\promotion\Group as GroupModel;

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

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

}