<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SchemePayment extends Model
{
    protected $table = 'scheme_payments';

    protected $primaryKey = 'payment_id';

    public $timestamps = false;

    protected $fillable = [
        'registration_id',
        'payment_date',
        'amount',
        'payment_method',
        'receipt_no'
    ];

    public function registration()
    {
        return $this->belongsTo(SchemeCustomer::class,'registration_id');
    }
}