<?php
class Application_Model_PlansTasks extends Zend_Db_Table_Abstract {
	protected $_id;
	
	protected $_project_id;
	
	protected $_user_id;
	
	protected $_for_user_id;
	
	protected $_task_content;
	
	protected $_current_status;
	
	protected $_current_comment;
	
	protected $_created_at;
	
	protected $_modified_at;
	
	protected $_deadline_at;
	
	protected $_primary = "id";
	
	protected $_sequence = true;
	
	protected $_name = "plans_tasks";
	
	protected $_referenceMap = array(
		"project" => array(
			"columns" => "project_id"
			, "refTableClass" => "Application_Model_Projects"
			, "refColumns" => "directory_id"
		),
		
		"user" => array(
			"columns" => "user_id"
			, "refTableClass" => "Application_Model_Users"
			, "refColumns" => "id"
		),
		
		"target" => array(
			"columns" => "for_user_id"
			, "refTableClass" => "Application_Model_Users"
			, "refColumns" => "id"
		)
	);
}