<?php

declare(strict_types=1);

namespace App\Models;

use CodeIgniter\Model;

class QuizSettingModel extends Model
{
    protected $table            = 'quiz_settings';
    protected $primaryKey       = 'id';
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $allowedFields    = [
        'title',
        'description',
        'question_type',
        'question_count',
        'question_timer_seconds',
        'passing_score_pct',
        'selected_document_ids',
        'created_by',
        'is_active',
        'created_at',
        'updated_at',
    ];
    protected $useTimestamps    = true;
    protected $createdField     = 'created_at';
    protected $updatedField     = 'updated_at';
    protected $validationRules  = [];
    protected $skipValidation   = false;
}
