<?php

namespace App\Models;

use CodeIgniter\Model;

class Registro_ingresoModel extends Model
{
    protected $table      = 'registro_ingreso';
    protected $primaryKey = 'id_registro';

    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;

    protected $allowedFields = [
        'id_registro',
        'dni',
        'nombres',
        'fecha_ingreso',
        'id_sede',
        'id_dependencia',
        'tipo_registro',
        'persona'
    ];

    protected $useTimestamps = false;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
    protected $deletedField  = 'deleted_at';

    protected $validationRules    = [];
    protected $validationMessages = [];
    protected $skipValidation     = false;
}