<?php

namespace App\Models;

use App\Traits\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;

class ReminderHistory extends Model
{
    use BelongsToTenant;

    protected $table = 'reminder_history';

    protected $fillable = [
        'tenant_id',
        'entity_type',
        'entity_id',
        'days_before_expiry',
        'scheduled_date',
        'sent_at',
        'channel',
        'recipient',
        'status',
        'failure_reason',
    ];

    protected $casts = [
        'scheduled_date' => 'date',
        'sent_at' => 'datetime',
    ];
}
