<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class VendorRating extends BaseModel
{
    protected $guarded = ['id'];
    protected $casts = [
        'overallRating' => 'decimal:1',
        'quality' => 'decimal:1',
        'timelines' => 'decimal:1',
        'communication' => 'decimal:1',
        'cost' => 'decimal:1',
    ];

    public function vendor(): BelongsTo { return $this->belongsTo(Vendor::class); }
    public function project(): BelongsTo { return $this->belongsTo(Project::class); }
}
