<?php

namespace App\Models;

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

class JournalEntry extends Model
{
    use HasFactory;
    
    protected $fillable = ['date', 'description', 'reference_type', 'reference_id', 'branch'];

    public function details()
    {
        return $this->hasMany(JournalDetail::class);
    }
}
