<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ComplaintAgainst extends Model
{
    protected $table = "complaint_against";

    protected $fillable = [
        'complaint_type_id',
        'name',
        'status'
    ];

    public function type()
    {
        return $this->belongsTo(
            ComplaintType::class,
            'complaint_type_id'
        );
    }
}