<?php
namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
class Quarry extends BaseModel {
    use SoftDeletes;
    protected function casts(): array { return ['licence_expiry' => 'date', 'epa_expiry' => 'date', 'is_active' => 'boolean']; }
    public function benches() { return $this->hasMany(PitBench::class); }
    public function crusherLines() { return $this->hasMany(CrusherLine::class); }
    public function stockpiles() { return $this->hasMany(Stockpile::class); }
    public function manager() { return $this->belongsTo(Employee::class, 'manager_id'); }
}
