<?php
namespace App\Models;
class WorkPermit extends BaseModel {
    protected function casts(): array { return ['permit_date' => 'date', 'valid_from' => 'date', 'valid_to' => 'date']; }
    public function quarry() { return $this->belongsTo(Quarry::class); }
    public function project() { return $this->belongsTo(Project::class); }
}
