<?php namespace App;

use Illuminate\Database\Eloquent\Model;
class MentorUsers extends Model {

	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */
	protected $table = 'mentor_users';

	/**
	 * The attributes that are mass assignable.
	 *
	 * @var array
	 */
	protected $fillable = ['profile_id','mentor_id','status','is_readed','is_deleted'];

  protected function create_record($profile_id,$mentor_id,$folder='I',$permission_type='N',$is_readed='N',$is_deleted='N')
  {
  	$create = array();
  	$create['profile_id'] = $profile_id;
  	$create['mentor_id'] = $mentor_id;
	$create['folder'] = $folder;
  	$create['permission_type'] = $permission_type;
  	$create['is_readed'] = $is_readed;
  	$create['is_deleted'] = $is_deleted;

  	$save = $this->create($create);
  }	

  	
}
