public static function history($limit=50, $uid=null)
	{
		$model = self::all();

		if ($limit)
		{
			$model->limit((int)$limit);
		}

		if ($uid)
		{
			$model->whereEquals('uid', $uid);
		}

		return $model->order('created', 'desc')->rows();
	}