You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
444 B

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class CameraAlertNotification extends Model
{
protected $fillable = ['camera_alert_id','channel','receiver','send_status','sent_at','error_message','attempts'];
protected $casts = ['sent_at'=>'datetime'];
public function alert(): BelongsTo { return $this->belongsTo(CameraAlert::class, 'camera_alert_id'); }
}