<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class OmsClient extends Model
{
    protected $fillable = [
        'date', 'client_name', 'guardian_name', 'address', 'nid_number', 
        'mobile_number', 'product_name', 'dealer_id', 'word_no', 'institute_name', 'sale_point'
    ];

    public function dealer(): BelongsTo
    {
        return $this->belongsTo(OmsDealer::class, 'dealer_id');
    }
}