<?php
// app/Models/EmailChangeRequestModel.php
namespace App\Models;

use CodeIgniter\Model;

class EmailChangeRequestModel extends Model
{
    protected $table            = 'email_change_requests';
    protected $primaryKey       = 'id';
    protected $returnType       = 'object';

    protected $allowedFields    = ['user_id', 'new_email', 'token', 'expires_at'];

    protected $useTimestamps    = true;
    protected $createdField     = 'created_at';
    protected $updatedField     = 'updated_at';
}