<?php

namespace App\Models;

use CodeIgniter\Model;

class UserLoginTokenModel extends Model
{
    protected $table            = 'user_login_tokens';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $protectFields    = true;
    protected $allowedFields    = [
        'user_id',
        'selector',
        'token_hash',
        'expires_at',
        'last_used_at',
        'created_at',
    ];
    protected $useTimestamps = false;
    protected $dateFormat    = 'datetime';
}
