<?php

namespace App\Models;

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

class PenawaranPelatihan extends Model
{
    use HasFactory;
    protected $table = 'penawaran_pelatihan';

    protected $fillable = [
        'penawaran_project_id',
        'lokasi_pelatihan',
        'durasi_pelatihan',
        'jumlah_peserta',
    ];

    public function project()
    {
        return $this->belongsTo(PenawaranProject::class);
    }
}
