<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Pengumuman extends Model
{
    // Nama tabel
    protected $table = 'pengumuman';

    // Primary key custom
    protected $primaryKey = 'id_pengumuman';

    // Mass assignable fields
    protected $fillable = [
        'judul_pengumuman',
        'isi_pengumuman',
        'tanggal_pengumuman',
        'gambar_pengumuman',
    ];

    // Primary key auto increment
    public $incrementing = true;

    // Tipe primary key
    protected $keyType = 'int';
}
