<?php
namespace App\Models;
use Illuminate\Database\Eloquent\{Model,Factories\HasFactory,Relations\BelongsTo};

class OrderItem extends Model
{
    use HasFactory;
    protected $fillable = ['order_id','type','plan_id','qty','unit_price'];
    public function order(): BelongsTo { return $this->belongsTo(Order::class); }
}
