<?php

namespace App\Models;

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

class RecordRow extends Model
{
    use HasFactory;

    protected $table = 'records_rows';

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

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

}

