<?php namespace App;

use Illuminate\Database\Eloquent\Model;

class MessageUsers extends Model {

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

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

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

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

  }		
}
