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:
30
ci4/app/Models/Mensajeria/ParticipanteModel.php
Normal file
30
ci4/app/Models/Mensajeria/ParticipanteModel.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Mensajeria;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
use App\Models\Customers\Customer;
|
||||
|
||||
class ParticipanteModel extends BaseModel
|
||||
{
|
||||
protected $table = 'chat_participantes';
|
||||
protected $primaryKey = 'id';
|
||||
protected $returnType = 'App\Entities\Mensajeria\ParticipanteEntity';
|
||||
protected $useTimestamps = true;
|
||||
protected $useSoftDeletes = true;
|
||||
protected $allowedFields = [
|
||||
'conversacion_id',
|
||||
'usuario_id',
|
||||
'cliente_id',
|
||||
'email',
|
||||
'last_read',
|
||||
];
|
||||
|
||||
protected $useTimestamps = true;
|
||||
|
||||
public function getCustomer()
|
||||
{
|
||||
//$customerModel = new Customer();
|
||||
//return $customerModel->find($this->attributes['customer_id']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user