<?php

namespace App\Models;

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

class PlanPrice extends Model
{
    use HasFactory;

    protected $fillable = [
        'plan_id', 'price', 'type', 'currancy'
    ];

    public function plan()
    {
        # code...
        return $this->belongsTo(Plan::class, 'plan_id', 'id');
    }
}
