mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadida migracion y modelo, entidad y controlador basicos
This commit is contained in:
25
ci4/app/Models/Tarifas/Acabados/ServicioAcabadoModel.php
Normal file
25
ci4/app/Models/Tarifas/Acabados/ServicioAcabadoModel.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
namespace App\Models\Tarifas\Acabados;
|
||||
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class ServiciosAcabadoModel extends Model
|
||||
{
|
||||
protected $table = 'servicios_acabado';
|
||||
protected $primaryKey = 'id';
|
||||
protected $useSoftDeletes = true;
|
||||
protected $allowedFields = ['tarifa_id', 'nombre', 'comentarios', 'mostrar_en_cliente', 'user_updated_id', 'created_at', 'updated_at', 'deleted_at'];
|
||||
protected $useTimestamps = true;
|
||||
|
||||
protected $returnType = 'App\Entities\Tarifas\Acabados\ServicioAcabadoEntity';
|
||||
|
||||
protected $validationRules = [
|
||||
"nombre" => [
|
||||
"label" => "Servicioacabado.nombre",
|
||||
"rules" => "trim|required|max_length[100]",
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user