<?php
namespace App\Models;
class Subcontract extends BaseModel {
    protected function casts(): array { return ['start_date' => 'date', 'end_date' => 'date']; }
    public function project() { return $this->belongsTo(Project::class); }
    public function supplier() { return $this->belongsTo(Supplier::class); }
    public function claims() { return $this->hasMany(SubcontractorClaim::class); }
}
