Configuraciones iniciales del sistema de mensajeria

This commit is contained in:
imnavajas
2024-07-02 21:45:32 +02:00
parent 95ca383215
commit 35e4e8ef95
6 changed files with 724 additions and 1 deletions

View 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']);
}
}