<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SubscriptionItem extends Model
{
    protected $fillable = [
        'service_subscription_id',
        'service_detail',
        'quantity',
        'unit_price',
        'subtotal',
    ];

    public function subscription()
    {
        return $this->belongsTo(ServiceSubscription::class, 'service_subscription_id');
    }
}
