<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class AlertRule extends Model
{
    use HasFactory;

    protected $table = 'alert_rules';

    protected $fillable = [
        'user_id',
        'external_id',
        'type',
        'is_enabled',
        'severity_default',
        'thresholds',
    ];

    protected $casts = [
        'is_enabled' => 'boolean',
        'thresholds' => 'array',
    ];
}
