<?php

namespace App\Models;

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

class AppNotification extends Model
{
    use HasFactory;

    protected $table = 'app_notifications';

    protected $fillable = [
        'type','title','body','related_type','related_id','due_at','is_sent',
    ];

    protected $casts = [
        'due_at' => 'datetime',
        'is_sent' => 'boolean',
    ];
}
