<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ProductionRiskAlert extends Model
{
    protected $fillable = [
        'type',
        'severity',
        'title',
        'message',
        'alertable_type',
        'alertable_id',
        'is_read',
    ];

    public function alertable()
    {
        return $this->morphTo();
    }
}
