<?php

namespace App\Models;

use CodeIgniter\Model;

class InspectionModel extends Model
{
    protected $table = 'inspections';
    protected $primaryKey = 'id';
    protected $returnType = 'array';
    protected $useAutoIncrement = true;
    protected $protectFields = true;
    protected $allowedFields = [
        'folio', 'template_id', 'client_id',
        'sistema', 'equipo', 'atencion', 'servicio', 'contrato',
        'inspector_user_id', 'fecha', 'periodicidad', 'status', 'observaciones',
        'started_at', 'completed_at', 'signed_at',
        'verify_token', 'autosave_json', 'autosave_updated_at',
    ];
    protected $useTimestamps = true;
}
