first commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class OrganizationUserModel extends Model
|
||||
{
|
||||
protected $table = 'organization_users';
|
||||
protected $primaryKey = 'id';
|
||||
protected $useAutoIncrement = true;
|
||||
protected $returnType = 'array';
|
||||
protected $allowedFields = ['organization_id', 'user_id', 'role', 'status', 'joined_at'];
|
||||
|
||||
protected $useTimestamps = false; // У нас есть только created_at, можно настроить вручную
|
||||
}
|
||||
Reference in New Issue
Block a user