add code field to models and entities

This commit is contained in:
amazuecos
2024-10-21 16:51:19 +00:00
parent 49e03fb7e9
commit 73a60466d3
10 changed files with 17 additions and 3 deletions

View File

@ -8,6 +8,7 @@ class TarifaextraEntity extends \CodeIgniter\Entity\Entity
protected $attributes = [
"id" => null,
"nombre" => null,
"code" => null,
"precio" => null,
"margen" => 0,
"mostrar_en_presupuesto" => 1,
@ -20,6 +21,7 @@ class TarifaextraEntity extends \CodeIgniter\Entity\Entity
];
protected $casts = [
"precio" => "float",
"code" => "string",
"margen" => "float",
"mostrar_en_presupuesto" => "int",
"user_created_id" => "int",