<?php

namespace App\Models;

use CodeIgniter\Model;

class EmailOtpModel extends Model
{
    protected $table            = 'email_otps';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $protectFields    = true;
    protected $allowedFields    = [
        'email',
        'otp_hash',
        'attempt_count',
        'expires_at',
        'verified_at',
        'created_at',
    ];
    protected $useTimestamps = false;
    protected $dateFormat    = 'datetime';
}
