<?php

namespace App\Models;

use CodeIgniter\Model;

class BroadcastLogModel extends Model
{
    protected $table            = 'broadcast_logs';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'object';
    protected $useSoftDeletes   = false;

    protected $allowedFields    = ['participant_id', 'template_id', 'status', 'sent_at'];

    // Hanya ada 'sent_at', bukan created/updated
    protected $useTimestamps    = false;
}