TenantAtlas/apps/platform/app/Models/AlertRuleDestination.php
2026-04-08 09:33:16 +02:00

31 lines
621 B
PHP

<?php
declare(strict_types=1);
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\Pivot;
class AlertRuleDestination extends Pivot
{
protected $table = 'alert_rule_destinations';
protected $guarded = [];
public function workspace(): BelongsTo
{
return $this->belongsTo(Workspace::class);
}
public function alertRule(): BelongsTo
{
return $this->belongsTo(AlertRule::class);
}
public function alertDestination(): BelongsTo
{
return $this->belongsTo(AlertDestination::class);
}
}