<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PaketLelang extends Model
{
    protected $fillable = [
        'id_paket',
        'nama_paket',
        'tahun',
        'deadline',
        'catatan',
    ];

    protected $casts = [
        'tahun' => 'integer',
        'deadline' => 'date',
    ];

    public function lelangPersonils()
    {
        return $this->hasMany(LelangPersonil::class);
    }
}
