<?php

namespace App\Models;

use CodeIgniter\Model;

class InspectionTemplateItemModel extends Model
{
    protected $table = 'inspection_template_items';
    protected $primaryKey = 'id';
    protected $returnType = 'array';
    protected $useAutoIncrement = true;
    protected $protectFields = true;
    protected $allowedFields = [
        'template_id', 'section_id', 'numero', 'pregunta',
        'equipo', 'frecuencia', 'tipo_campo', 'opciones', 'orden', 'obligatorio',
    ];
    protected $useTimestamps = false;
}
