<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Fileview_template extends Model
{
    //

	protected $fillable =['file_id','template_id','top','top1','top2','top3','mid','mid1','mid2','mid3','bottom','bottom1','bottom2',
				'bottom3','cancel_flag','approval_flag','approved_by','updated_by'];
    	protected $table='fileview_template';


	function template()
	    {
	    	return $this->belongsTo('\App\Template','template_id');
	    }

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

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

}
