<?php

namespace App\Modules\HR\Attendance\Models;

use Illuminate\Database\Eloquent\Model;

class AttendancePunchDetail extends Model
{
    protected $table = 'attendance_punch_details';

    protected $fillable = [
        'attendance_detail_id',
        'sequence_no',
        'punch_type',
        'punch_time',
        'source',
    ];

    protected $casts = [
        'punch_time' => 'datetime',
    ];

    public function attendanceDetail()
    {
        return $this->belongsTo(AttendanceDetail::class);
    }
}
