Files
alrahma_sunday_school/app/Models/UserNotificationModel.php
root 716cc8b8d3
Tests / PHPUnit (push) Failing after 1m20s
fix school year for all tables
2026-07-18 14:45:38 -04:00

29 lines
576 B
PHP

<?php
namespace App\Models;
use CodeIgniter\Model;
use App\Models\Concerns\SchoolYearAutoFillTrait;
class UserNotificationModel extends Model
{
use SchoolYearAutoFillTrait;
protected $table = 'user_notifications';
protected $primaryKey = 'id';
protected $allowedFields = [
'notification_id',
'user_id',
'is_read',
'delivered',
'delivered_at',
'school_year',
];
protected $validationRules = [
'school_year' => 'required|string|max_length[20]',
];
protected $useTimestamps = false;
}