This commit is contained in:
@@ -3,9 +3,12 @@
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
use App\Models\Concerns\SchoolYearAutoFillTrait;
|
||||
|
||||
class InvoiceStudentListModel extends Model
|
||||
{
|
||||
use SchoolYearAutoFillTrait;
|
||||
|
||||
// Specify the table name
|
||||
protected $table = 'invoice_students_list';
|
||||
|
||||
@@ -21,8 +24,13 @@ class InvoiceStudentListModel extends Model
|
||||
'school_id',
|
||||
'enrolled',
|
||||
'created_at',
|
||||
'updated_at'
|
||||
'updated_at',
|
||||
'school_year',
|
||||
];
|
||||
protected $validationRules = [
|
||||
'school_year' => 'required|string|max_length[9]',
|
||||
];
|
||||
|
||||
|
||||
// Enable auto-incrementing primary key
|
||||
protected $useAutoIncrement = true;
|
||||
|
||||
Reference in New Issue
Block a user