<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Notification extends Model
{

    public $timestamps = true;
    protected $table = 'notification';
    use SoftDeletes;

    protected $perPage = 20;

    /**
     * Attributes that should be mass-assignable.
     *
     * @var array
     */
    protected $fillable = ['subject','description','type_id','schedule_day','created_who', 'updated_who','schedule', 'reminder'];

    public function tipe_notifikasi()
    {
        return $this->belongsTo(TipeNotification::class, 'type_id', 'id');
    }

}
