Files
safekat/ci4/app/Models/Pedidos/PedidoLineaModel.php

42 lines
896 B
PHP

<?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";
}