<?php

namespace App\Models;

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

class Turno extends Model
{
    use HasFactory;

    protected $table = 'turnos';
    protected $primaryKey = 'id_turno';
    public $timestamps = false;

    protected $fillable = [
        'turnos',
    ];

    public function cierres()
    {
        return $this->hasMany(CierreTurno::class, 'id_turno', 'id_turno');
    }
}
