<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Notification
 *
 * @property-read \App\NotificationType $NotificationType
 * @mixin \Eloquent
 */
class Notification extends Model
{
    protected $table = 'notification';

    protected $fillable = [
        'notification_type_id',
        'title',
        'description',
        'notification_date',
        'district',
        'status',
        'created_at',
        'updated_at'
    ];
    public function NotificationType()
    {
        return $this->belongsTo('App\NotificationType', 'notification_type_id');
    }
}
