mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
55 lines
1.5 KiB
PHP
55 lines
1.5 KiB
PHP
<?php
|
|
namespace App\Models\Tarifas;
|
|
|
|
class TarifapreimpresionModel extends \App\Models\GoBaseModel
|
|
{
|
|
protected $table = "lg_tarifa_preimpresion";
|
|
|
|
/**
|
|
* Whether primary key uses auto increment.
|
|
*
|
|
* @var bool
|
|
*/
|
|
protected $useAutoIncrement = true;
|
|
|
|
protected $allowedFields = [
|
|
"nombre",
|
|
"precio",
|
|
"deleted_at",
|
|
"is_deleted",
|
|
"user_created_id",
|
|
"user_update_id"];
|
|
protected $returnType = "App\Entities\Tarifas\TarifapreimpresionEntity";
|
|
|
|
protected $useTimestamps = true;
|
|
protected $useSoftDeletes = false;
|
|
|
|
protected $createdField = "created_at";
|
|
protected $updatedField = "updated_at";
|
|
protected $deletedField = 'deleted_at';
|
|
|
|
public static $labelField = "nombre";
|
|
|
|
protected $validationRules = [
|
|
"nombre" => [
|
|
"label" => "Tarifapreimpresion.nombre",
|
|
"rules" => "trim|required|max_length[255]",
|
|
],
|
|
"precio" => [
|
|
"label" => "Tarifapreimpresion.precio",
|
|
"rules" => "required|decimal",
|
|
]
|
|
];
|
|
|
|
protected $validationMessages = [
|
|
"nombre" => [
|
|
"max_length" => "Tarifapreimpresion.validation.nombre.max_length",
|
|
"required" => "Tarifapreimpresion.validation.nombre.required",
|
|
],
|
|
"precio" => [
|
|
"decimal" => "Tarifapreimpresion.validation.precio.decimal",
|
|
"required" => "Tarifapreimpresion.validation.precio.required",
|
|
],
|
|
];
|
|
}
|