<?php

namespace Modules\MedNotify\Entities;

use Illuminate\Database\Eloquent\Model;

/**
 * A deferred notification awaiting its next digest flush.
 */
class MednotifyDigestQueue extends Model
{
    protected $table = 'mednotify_digest_queue';

    protected $guarded = ['id'];

    protected $casts = [
        'payload'    => 'array',
        'queued_at'  => 'datetime',
        'flushed_at' => 'datetime',
    ];
}
