<?php

namespace App\Models;

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

class ReceiptRow extends Model
{
    use HasFactory;

    protected $table = 'receipts_rows';

    protected $fillable = [
        'receip_id',
        'causal_id',
        'when',
        'amount',
        'note',
        'commercial',
    ];

    public function causal()
    {
        return $this->belongsTo(Causal::class);
    }

}

