<?php
namespace App\Models;
class Journal extends BaseModel {
    protected function casts(): array { return ['journal_date' => 'date', 'posted_at' => 'datetime']; }
    public function fiscalYear() { return $this->belongsTo(FiscalYear::class); }
    public function lines() { return $this->hasMany(JournalLine::class); }
}
