<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Notification extends BaseModel
{
    public const UPDATED_AT = null;

    protected function casts(): array { return ['data' => 'array', 'sent_at' => 'datetime', 'read_at' => 'datetime']; }
    public function user(): BelongsTo { return $this->belongsTo(User::class); }
}