<?php

namespace App\Models;

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

class Riwayat extends Model
{
    use HasFactory;

    protected $table = 'riwayat_bks';

    protected $primaryKey = 'id_riwayat_bk';

    protected $fillable = [
        'id_pengaduan_bk',
        'tindakan_bk',
        'keterangan',
    ];

    public function pengaduan()
    {
        return $this->belongsTo(Pengaduan::class, 'id_pengaduan_bk');
    }
}
