<?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');
    }
}