<?php

namespace App\Models\Tenant;

use App\Models\Concerns\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class ServiceReminderSent extends Model
{
    use BelongsToTenant;

    protected $table = 'service_reminders_sent';

    protected $fillable = [
        'company_id', 'vehicle_id', 'client_id',
        'channel', 'type', 'sent_at',
    ];

    protected $casts = [
        'sent_at' => 'datetime',
    ];

    public function vehicle(): BelongsTo
    {
        return $this->belongsTo(Vehicle::class);
    }

    public function client(): BelongsTo
    {
        return $this->belongsTo(Client::class);
    }
}
