<?php

namespace App\Models;

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

class PemerintahDetails extends Model
{
    use HasFactory;

    // Tentukan nama tabel jika tidak mengikuti konvensi
    protected $table = 'pemerintah_details';

    protected $fillable = [
        'user_id',
        'institution_name',
        'foto',
        'description_pemerintah',
    ];
    public $timestamps = true;
    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
