<?php
class Application_Model_FtpLogs extends Zend_Db_Table_Abstract {
	protected $_id;
	
	protected $_user_id;
	
	protected $_project_id;
	
	protected $_label_id;
	
	protected $_created_at;
	
	protected $_params;
	
	protected $_is_success;
	
	protected $_sequence = true;
	
	protected $_name = "ftp_logs";
	
	protected $_primary = "id";
	
	protected $_referenceMap = array(
		"user" => array(
			"columns" => "user_id"
			, "refTableClass" => "Application_Model_Users"
			, "refColumns" => "id"
		)
		
		, "project" => array(
			"columns" => "project_id"
			, "refTableClass" => "Application_Model_Projects"
			, "refColumns" => "directory_id"
		)
		
		, "label" => array(
			"columns" => "label_id"
			, "refTableClass" => "Application_Model_ProjectsLabels"
			, "refColumns" => "id"
		)
	);
}