<?php

namespace App\Models;

use CodeIgniter\Model;

class CounselingMessageModel extends Model
{
    protected $table            = 'counseling_messages';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $protectFields    = true;
    protected $allowedFields    = [
        'ticket_id',
        'sender_id',
        'sender_role',
        'message',
        'created_at'
    ];

    // Dates
    protected $useTimestamps = false; // We set created_at manually
}
