<?php

namespace App\Models;

use App\Models\User;
use Illuminate\Database\Eloquent\Model;

class Attendance extends Model
{
    protected $table = 'presensi';
    
    protected $fillable = [
        'user_id',
        'clock_type',
        'status',
        'latitude',
        'longitude',
        'photo',
        'keterangan'
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
