<?php

namespace App\Models;

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

class CaixaCheckin extends Model
{
    use HasFactory;
    use SoftDeletes;
    protected $table="caixascheckins";
    protected $dates = ['deleted_at'];
    protected $fillable = ['checkin_id','caixa_id','usuario_id'];

    public function getCaixa()
    {
        return $this->belongsTo(Caixa::class,'caixa_id','id');
    }
}
