<?php

namespace Modules\Subscription\Models\Subscription;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\LMS\Models\Purchase\PurchaseDetails;

class SubscriptionUse extends Model
{
    use HasFactory;

    /**
     * The attributes that are mass assignable.
     */
    protected $guarded = ['id'];

    public function purchaseDetails()
    {
        return $this->hasOne(PurchaseDetails::class, 'id', 'sale_id');
    }
}
