<?php

namespace app\api\model\promotion;

use app\common\model\goods\Goods as GoodsModel;
use app\common\model\promotion\Second as SecondModel;

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

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

}