<?php

namespace App\Models;

use CodeIgniter\Model;

class AuditLogModel extends Model
{
    protected $table            = 'audit_logs';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $useTimestamps    = false;

    protected $allowedFields = [
        'church_id', 'user_id', 'action', 'table_name', 'record_uuid',
        'old_values', 'new_values', 'ip_address', 'user_agent', 'created_at',
    ];
}
