<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class Shift extends Model
{

    protected $fillable = [
        'name',
        'start_time',
        'end_time',
        'late_mark_after',
        'late_reason_required',
        'half_day_after_minutes',
        'half_day_reason_required',
        'is_active',
        'created_at',
        'updated_at',
    ];

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