<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class NewsletterSubscriber extends Model
{
    protected $fillable = ['email', 'ip_address', 'is_active', 'confirmed_at'];

    protected function casts(): array
    {
        return [
            'is_active'    => 'boolean',
            'confirmed_at' => 'datetime',
        ];
    }
}
