<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class NotificacionVista extends Model
{
    protected $table = 'notificacion_vistas';

    protected $fillable = [
        'usuario_id',
        'empresa_id',
        'notification_key',
        'leido_at',
    ];

    protected function casts(): array
    {
        return [
            'leido_at' => 'datetime',
            'created_at' => 'datetime',
            'updated_at' => 'datetime',
        ];
    }

}
