<?php

namespace App\Models;

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


class TempoArrumar extends Model
{
    
    use HasFactory; 
    use SoftDeletes;
    protected $table="temposarrumacoes";
    protected $dates = ['deleted_at'];
    protected $fillable = ['tempo','ano','mes','usuario_id'];
    
    
    public function getUser()
    {
        return $this->belongsTo(User::class, 'usuario_id', 'id');
    } 
}
