<?php

namespace App\Models;

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

class TrainingRecord extends Model
{
    protected $table = 'training_records';
    
    protected $fillable = [
        'worker_id',
        'training_date',
        'jenis_latihan',
        'penganjur_penceramah',
    ];

    public function worker()
    {
        return $this->belongsTo(Worker::class);
    }
}