feat : migration and chat models

This commit is contained in:
Alvaro Mazuecos Nogales
2024-09-20 11:25:34 +02:00
parent b25abc19d9
commit bfea4aa67c
9 changed files with 158 additions and 59 deletions

View File

@ -1,18 +1,22 @@
<?php
namespace App\Models;
namespace App\Models\Chat;
use CodeIgniter\Model;
class ChatDeparmentUserModel extends Model
{
protected $table = 'chat_deparment_users';
protected $table = 'chat_department_users';
protected $primaryKey = 'id';
protected $useAutoIncrement = true;
protected $returnType = 'array';
protected $useSoftDeletes = false;
protected $protectFields = true;
protected $allowedFields = [];
protected $allowedFields = [
"chat_department_id",
"user_id"
];
protected bool $allowEmptyInserts = false;
protected bool $updateOnlyChanged = true;