<?php

namespace App\Models;

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

class DocumentType extends BaseModel
{
    use HasFactory;

    protected $table = 'document_types';

    protected $fillable = [
        'title',
        'del'
    ];

    public function siteDocuments()
    {
        return $this->hasMany(SiteDocument::class, 'document_type', 'id');
    }
}
