<?php
namespace App\Models;
class ProductionEntry extends BaseModel {
    protected function casts(): array { return ['entry_date' => 'date']; }
    public function quarry() { return $this->belongsTo(Quarry::class); }
    public function crusherLine() { return $this->belongsTo(CrusherLine::class); }
    public function product() { return $this->belongsTo(Product::class); }
    public function creator() { return $this->belongsTo(User::class, 'created_by'); }
    public function approver() { return $this->belongsTo(User::class, 'approved_by'); }
}
