<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AduanTps extends Model
{
    protected $table = 'aduan_tps';
    protected $primaryKey = 'id_aduan';

    protected $fillable = [
        'lokasi_tps_id',
        'nama_pelapor',
        'alamat_pelapor',
        'no_pelapor',
        'isi_aduan',
        'tanggal_aduan',
        'bukti_foto',
        'tanggapan_admin',
        'tanggal_tanggapan'
    ];

    public function lokasiTps()
    {
        return $this->belongsTo(LokasiTps::class);
    }
}

