<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ProductContribution extends Model
{
      protected $fillable = [
        'product_id',
        'age_group_label',
        'age_min_months',
        'age_max_months',
        'contribution_pkr',
    ];

    protected $casts = [
        'contribution_pkr' => 'decimal:2',
    ];

    public function product()
    {
        return $this->belongsTo(Product::class, 'product_id', 'product_id');
    }
}
