<?php

namespace App\Models;

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

class EmployeeBreak extends BaseModel
{
    use HasFactory;
    protected $fillable = [
        'emp_attendance_id',
        'break_in',
        'break_out',
        'date'
    ];

    public function employeeAttendance()
    {
        return $this->belongsTo(EmployeeAttendance::class, 'emp_attendance_id', 'id');
    }
}
