añadidos entidades y modelos. Hecha lista de todos

This commit is contained in:
2024-06-11 08:53:20 +02:00
parent bc85572610
commit 2143660cf6
14 changed files with 484 additions and 31 deletions

View File

@ -0,0 +1,42 @@
<?php
namespace App\Models\Pedidos;
class PedidoLineaModel extends \App\Models\BaseModel
{
protected $table = "pedidos_linea";
/**
* Whether primary key uses auto increment.
*
* @var bool
*/
protected $useAutoIncrement = true;
const SORTABLE = [
0 => "t1.id",
1 => "t1.estado",
2 => "t1.total_precio",
3 => "t1.total_tirada",
];
protected $allowedFields = [
"pedido_id",
"presupuesto_id",
"ubicacion_id",
"user_created_id",
"user_updated_id",
"created_at",
"updated_at",
];
protected $returnType = "App\Entities\Pedidos\PedidoLineaEntity";
protected $useTimestamps = true;
protected $useSoftDeletes = false;
protected $createdField = "created_at";
protected $updatedField = "updated_at";
public static $labelField = "id";
}