<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class ScheduleEquipment extends BaseModel
{
    protected $table = 'schedule_equipment';
    protected $guarded = ['id'];
    protected $casts = ['startDate' => 'datetime', 'endDate' => 'datetime'];

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