mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
45 lines
1018 B
PHP
Executable File
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",
|
|
],
|
|
];
|
|
|
|
|
|
}
|