<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class AppNotification extends Model
{
    use HasFactory;

    protected $fillable = [
        'sender_id',
        'sender_role',
        'target_audience',
        'title',
        'message',
        'image_url',
        'action_url',
    ];

    public function sender()
    {
        return $this->belongsTo(User::class, 'sender_id');
    }
}
