<?php

namespace App\Models;

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

class Shift extends Model
{
    use HasFactory, SoftDeletes;

    protected $fillable = [
        'name',
        'type',
        'start_time',
        'end_time',
        'late_tolerance_minutes',
        'grace_period_minutes',
    ];

    public function users(): HasMany
    {
        return $this->hasMany(User::class);
    }
}
