<?php
namespace App\Models\Configuracion;

class FormasPagoModel extends \App\Models\GoBaseModel
{
    protected $table = "lg_formas_pago";

    /**
     * Whether primary key uses auto increment.
     *
     * @var bool
     */
    protected $useAutoIncrement = true;

    protected $allowedFields = ["nombre"];
    protected $returnType = "App\Entities\Configuracion\FormasPagoEntity";

    public static $labelField = "nombre";

    protected $validationRules = [
        "nombre" => [
            "label" => "FormasPagoes.nombre",
            "rules" => "trim|required|max_length[255]",
        ],
    ];

    protected $validationMessages = [
        "nombre" => [
            "max_length" => "FormasPagoes.validation.nombre.max_length",
            "required" => "FormasPagoes.validation.nombre.required",
        ],
    ];
}
