Files
alrahma_sunday_school_api/app/Models/AdminNotificationSubject.php
T
2026-03-08 16:33:24 -04:00

29 lines
585 B
PHP

<?php
namespace App\Models;
use App\Models\BaseModel;
class AdminNotificationSubject extends BaseModel
{
protected $table = 'admin_notification_subjects';
protected $fillable = [
'admin_id',
'subject',
'created_at',
'updated_at',
];
// CI uses created_at / updated_at
public $timestamps = true;
protected $casts = [
'admin_id' => 'integer',
];
// Optional relationship (if your admins are in users table)
public function admin()
{
return $this->belongsTo(User::class, 'admin_id');
}
}