<?php
 /**
  * Model for docs_assignment_users table
  *
  * This is the model for docs_assignment_users table extended from MY_Model.
  *
  * @author Innoxess Spain, S.L. <hola@innoxess.es>
  * @copyright 2015-2018 Innoxess Spain, S.L.
  * @package  Application
  * @subpackage Models
  *
  */
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 /**
  * Class Docs_assignment_repo_docs_m - Model
  *
  * Model for docs_assignment_users table.
  */
class Docs_assignment_users_m extends MY_Model
{
	 /** @var string This is the database table for this model. */
	var $table = "docs_assignment_users";

	/**
	  * Constructor
	  */
	function __construct()
	{
		parent::__construct();
	}

	/**
	  * Fetch all the records in the table filtered by User
	  *
	  * @param int $user_id User ID
	  *
	  * @return array
	  */
	function get_by_client($user_id)
	{
		$this->db->where('user_id', $user_id);

		return $this->get_all();
	}
}
