<?php
class Application_Model_MessagesAddressary extends Zend_Db_Table_Abstract {
	protected $_id;
	
	protected $_user_id;
	
	protected $_target_user_login;
	
	protected $_primary = "id";
	
	protected $_sequence = true;
	
	protected $_name = "messages_addressary";
	
	protected $_referenceMap = array(
		"user" => array(
			"columns" => "user_id",
			"refTableClass" => "Application_Model_Users",
			"refColumns" => "id"
		),
		
		"login" => array(
			"columns" => "target_user_login"
			, "refTableClass" => "Application_Model_users"
			, "refColumns" => "username"
		)
	);
}
?>