<?php
class Application_Model_MessagesRecieved extends Zend_Db_Table_Abstract {
	protected $_id;
	
	protected $_user_id;
	
	protected $_from_user_id;
	
	protected $_subject;
	
	protected $_content;
	
	protected $_recieved_at;
	
	protected $_is_readed;
	
	protected $_name = "messages_recieved";
	
	protected $_primary = "id";
	
	protected $_sequence = true;
	
	protected $_referenceMap = array(
		"user" => array(
			"columns" => "user_id"
			, "refTableClass" => "Application_Model_Users"
			, "refColumns" => "id"
		)
		
		, "from" => array(
			"columns" => "from_user_id"
			, "refTableClass" => "Application_Model_Users"
			, "refColumns" => "id"
		)
	);
}