<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class Coupon extends Model
{
    use HasFactory;

    protected $guarded = ['id'];

    public function applicableProducts() : HasMany
    {
        return $this->hasMany(CouponApplicableProducts::class, 'coupon_id');
    }
}
