<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class File_reference extends Model
{
    //

protected $fillable = ['tapal_id','file_id','created_by'];

    public $table="file_reference";
 function file()
    {
    	return $this->belongsTo('\App\File','file_id');
    }


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

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

}
