<?php
namespace App;
use Illuminate\Database\Eloquent\Model;

class Documents extends Model
{
    protected $fillable = ['tapal_id','file_id','document_path','document_name','delete_at','updated_by'];
    public $table="documents";

    function user()
    {
    	return $this->belongsTo('\App\User','updated_by');
    }

    function tapal()
    {
    	return $this->belongsTo('\App\Tapal','tapal_id');
    }

	function file()
    {
    	return $this->belongsTo('\App\File','file_id');
    }

}
