This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
<?php namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
use App\Models\Concerns\SchoolYearAutoFillTrait;
|
||||
|
||||
class WhatsappGroupLinkModel extends Model
|
||||
{
|
||||
use SchoolYearAutoFillTrait;
|
||||
|
||||
protected $table = 'whatsapp_group_links';
|
||||
protected $primaryKey = 'id';
|
||||
protected $returnType = 'array';
|
||||
@@ -14,6 +17,10 @@ class WhatsappGroupLinkModel extends Model
|
||||
'invite_link',
|
||||
'active',
|
||||
];
|
||||
protected $validationRules = [
|
||||
'school_year' => 'required|string|max_length[9]',
|
||||
];
|
||||
|
||||
protected $useTimestamps = true; // requires created_at / updated_at columns
|
||||
|
||||
private ?bool $hasSchoolYearColumn = null;
|
||||
|
||||
Reference in New Issue
Block a user