<?php

namespace App\Models;

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

class NotificationDetails extends Model
{
    use HasFactory;
    protected $table = "notification_details";
    protected $fillable = [
        'id',
        'principal_xid', 'type', 'description', 'image', 'date_added'
    ];

    protected $guarded = [];

    public function Notification()
    {
        return $this->belongsTo(IamPrincipal::class, 'principal_xid', 'id');
    }
}
