<?php
namespace App\Models;
class DepreciationRun extends BaseModel {
    protected function casts(): array { return ['run_date' => 'date']; }
    public function lines() { return $this->hasMany(DepreciationRunLine::class); }
    public function journal() { return $this->belongsTo(Journal::class); }
    public function runner() { return $this->belongsTo(User::class, 'run_by'); }
}
