<?php

namespace App\Model\payment;

use Illuminate\Database\Eloquent\Model;

class PaymentDetailModel extends Model
{
    protected $table = 'nso007_payment_detail';
    protected $fillable = [
        'id',
        'payment_by',
        'payment_method',
        'payment_id',
        'paid_amount',
        'payment_date',
        'note',
        'status',
        'type',
        'clear_ar',
    ];

    public function payment()
    {
        return $this->belongsTo(PaymentModel::class, 'payment_id', 'id');
    }
}
