<?php

namespace app\api\model\promotion;

use app\common\model\goods\Goods as GoodsModel;
use app\common\model\promotion\Point as PointModel;

/**
 * @package app\api\model\promotion
 * @class Point
 * @author xzncit 2024/3/23
 */
class Point extends PointModel {

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

}