<?php
class Application_Model_Notes extends Zend_Db_Table_Abstract {
	protected $_id;
	
	protected $_document_uuid;
	
	protected $_directory_id;
	
	protected $_user_id;
	
	protected $_note;
	
	protected $_created_at;
	
	protected $_name = "notes";
	
	protected $_sequence = true;
	
	protected $_primary = "id";
	
	protected $_referenceMap = array(
		"user" => array(
			"columns" => "user_id"
			 , "refTableClass" => "Application_Model_Users"
			 , "refColumns" => "id"
		),
		
		"directory" => array(
			"columns" => "directory_id"
			, "refTableClass" => "Application_Model_DocumentsDirectories"
			, "refColumns" => "id"
		),
		
		"document" => array(
			"columns" => "document_uuid"
			, "refTableClass" => "Application_Model_Doucments"
			, "refColumns" => "uuid"
		)
	);
}