<?php

namespace App\Models;

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

class Conversa extends Model
{
   use HasFactory;
    protected $table="conversas";
    protected $primariKey="id";
    protected $fillable = ['estado','originatario','prioridade','tema','user_id'];


    public function getUser()
    {
        return $this->belongsTo(User::class,'user_id','id');
    } 
}
