Files
safekat/ci4/app/Models/Clientes/ClientePlantillaPreciosModel.php

45 lines
1018 B
PHP
Executable File

<?php
namespace App\Models\Clientes;
class ClientePlantillaPreciosModel extends \App\Models\GoBaseModel
{
protected $table = "cliente_plantilla_precios";
/**
* Whether primary key uses auto increment.
*
* @var bool
*/
protected $useAutoIncrement = true;
protected $allowedFields = ["nombre", "is_deleted", "deleted_at", "created_at", "updated_at"];
protected $returnType = "App\Entities\Clientes\ClientePlantillaPreciosEntity";
protected $useTimestamps = true;
protected $useSoftDeletes = false;
protected $createdField = "created_at";
protected $updatedField = "updated_at";
public static $labelField = "nombre";
protected $validationRules = [
"nombre" => [
"label" => "ClientePrecios.nombre",
"rules" => "trim|max_length[100]",
],
];
protected $validationMessages = [
"nombre" => [
"max_length" => "ClientePrecios.validation.max_length",
],
];
}