@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class StudentSectionDistributionDraftModel extends Model
|
||||
{
|
||||
protected $table = 'student_section_distribution_drafts';
|
||||
protected $primaryKey = 'id';
|
||||
protected $returnType = 'array';
|
||||
protected $useAutoIncrement = true;
|
||||
protected $protectFields = true;
|
||||
|
||||
protected $allowedFields = [
|
||||
'student_id',
|
||||
'class_id',
|
||||
'class_section_id',
|
||||
'school_year',
|
||||
'previous_school_year',
|
||||
'previous_final_score',
|
||||
'score_group',
|
||||
'status',
|
||||
'batch_key',
|
||||
'created_by',
|
||||
'applied_at',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
protected $useTimestamps = true;
|
||||
protected $createdField = 'created_at';
|
||||
protected $updatedField = 'updated_at';
|
||||
}
|
||||
Reference in New Issue
Block a user