34 lines
752 B
PHP
34 lines
752 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use CodeIgniter\Model;
|
|
|
|
class GroupModel extends Model
|
|
{
|
|
protected $table = 'm_group'; // Table name
|
|
protected $primaryKey = 'group_id'; // Primary key
|
|
|
|
|
|
|
|
protected $allowedFields = [
|
|
'name',
|
|
'description',
|
|
'domestic_policy_id',
|
|
'international_policy_id',
|
|
'created_on',
|
|
'created_by',
|
|
'updated_on',
|
|
'updated_by',
|
|
'is_active',
|
|
'org_id'
|
|
];
|
|
|
|
// Enable timestamps
|
|
protected $useTimestamps = false; // Set true if you use created_at, updated_at
|
|
protected $createdField = 'created_on'; // Custom created timestamp field
|
|
protected $updatedField = 'updated_on'; // Custom updated timestamp field
|
|
|
|
|
|
}
|