mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Configuraciones iniciales del sistema de mensajeria
This commit is contained in:
28
ci4/app/Entities/Mensajeria/ConversacionEntity.php
Normal file
28
ci4/app/Entities/Mensajeria/ConversacionEntity.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entities\Mensajeria;
|
||||
|
||||
use CodeIgniter\Entity\Entity;
|
||||
|
||||
class ConversacionEntity extends Entity
|
||||
{
|
||||
protected $attributes = [
|
||||
'id' => null,
|
||||
'pedido_libro_id' => null,
|
||||
'pedido_maquetacion_id' => null,
|
||||
'factura_id' => null,
|
||||
'departamento' => null,
|
||||
'asunto' => null,
|
||||
'created_at' => null,
|
||||
'updated_at' => null,
|
||||
'deleted_at' => null,
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
"pedido_libro_id" => "?int",
|
||||
"pedido_maquetacion_id" => "?int",
|
||||
"factura_id" => "?int"
|
||||
];
|
||||
|
||||
|
||||
}
|
||||
26
ci4/app/Entities/Mensajeria/ParticipanteEntity.php
Normal file
26
ci4/app/Entities/Mensajeria/ParticipanteEntity.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entities\Mensajeria;
|
||||
|
||||
use CodeIgniter\Entity\Entity;
|
||||
|
||||
class ParticipanteEntity extends Entity
|
||||
{
|
||||
protected $attributes = [
|
||||
'id' => null,
|
||||
'conversacion_id' => null,
|
||||
'usuario_id' => null,
|
||||
'cliente_id' => null,
|
||||
'email' => null,
|
||||
'last_read' => null,
|
||||
'created_at' => null,
|
||||
'updated_at' => null,
|
||||
'deleted_at' => null,
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
"conversacion_id" => "?int",
|
||||
"usuario_id" => "?int",
|
||||
"cliente_id" => "?int"
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user