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,21 @@
<?php
namespace App\Models;
namespace App\Models\Chat;
use CodeIgniter\Model;
class ChatDeparmentModel extends Model
{
protected $table = 'chat_deparments';
protected $table = 'chat_departments';
protected $primaryKey = 'id';
protected $useAutoIncrement = true;
protected $returnType = 'array';
protected $useSoftDeletes = false;
protected $protectFields = true;
protected $allowedFields = [];
protected $allowedFields = [
"name",
"display"
];
protected bool $allowEmptyInserts = false;
protected bool $updateOnlyChanged = true;