<?php

namespace App\Models;

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

class Protocolo extends Model
{
    use HasFactory;
    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'protocolos';

    /**
    * The database primary key value.
    *
    * @var string
    */
    protected $primaryKey = 'id';

    /**
     * Attributes that should be mass-assignable.
     *
     * @var array
     */
    protected $fillable = ['codigo', 'tipo', 'descricao', 'status', 'idUser', 'idSetor', 'anexo'];

    public function solicitante()
    {
        return $this->belongsTo('App\Models\Solicitante');
    }

    public function test_models_can_be_instantiated()
    {
        $user = Protocolo::factory()->make();
    }

}
