<?php

namespace App\Models;

use CodeIgniter\Model;

class NotifikasiModel extends Model
{
    protected $table            = 'notifikasi';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $allowedFields    = ['nama_staff', 'no_tujuan', 'pesan', 'status', 'coba_kirim', 'created_at', 'updated_at'];
    
    // Mengaktifkan fitur auto-timestamps dari CodeIgniter
    protected $useTimestamps    = true;
    protected $createdField     = 'created_at';
    protected $updatedField     = 'updated_at';
}