<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class Manutencao extends Model
{
    
    use HasFactory;
use SoftDeletes;
    protected $fillable=[
        'veiculo_id',
        'data',
        'km_atual',
        'tipo',
        'servico',
        'descricao',
        'valor',
        'fornecedor_id',
        'numero_nota',
        'status',
        'proxima_manutencao_km',
        'proxima_manutencao_data'
            
    ];

         public function veiculo()
      {
        return $this->belongsTo(Viatura::class);
      }
}
