<?php
namespace App\Models;
class PurchaseRequisition extends BaseModel {
    protected function casts(): array { return ['pr_date' => 'date', 'required_date' => 'date']; }
    public function requester() { return $this->belongsTo(User::class, 'requested_by'); }
    public function quarry() { return $this->belongsTo(Quarry::class); }
    public function lines() { return $this->hasMany(PurchaseRequisitionLine::class, 'requisition_id'); }
}
