<?php
/**
 * Reprezentace tabulky uzivatelu
 *
 * @author petr
 */
class Application_Model_Users extends Zend_Db_Table_Abstract {
    /**
     * identifikacni cislo uzivatele
     *
     * @var int
     */
    protected $_id;

    /**
     * uzivatelske jmeno
     *
     * @var string
     */
    protected  $_username;

    /**
     * kontaktni email
     *
     * @var string
     */
    protected $_email;

    /**
     * hashovane a osolene heslo
     *
     * @var string
     */
    protected $_password;

    /**
     * sul
     *
     * @var string
     */
    protected $_salt;

    /**
     * aktualni cookie
     *
     * @var string
     */
    protected $_cookie;

    /**
     * id korenoveho adresare uzivatele
     *
     * @var int
     */
    protected $_root_directory_id;

    /**
     * jmeno tabulky v databazi
     *
     * @var string
     */
    protected $_name = "users";

    /**
     * sloupec primarniho klice
     *
     * @var string
     */
    protected $_primary = "id";

    /**
     * prepinac zapnuti auto_increment
     *
     * @var bool
     */
    protected $_squence = true;

    /**
     * seznam zavislych tabulek
     *
     * @var array
     */
    protected $_dependentTables = array(
        "Application_Model_UsersHasManyUsersGroups",
        "Application_Model_UsersHasManyUsersRoles",
        "Application_Model_Documents",
        "Application_Model_DocumentsUnassigned",
        "Application_Model_DocumentsDirectories",
    	"Application_Model_MessagesAddressary",
    	"Application_Model_MessagesSended",
    	"Application_Model_MessagesRecieved",
    	"Application_Model_Notes",
    	"Application_Model_Documentations"
    );
    
    protected $_rowClass = "Application_Model_Row_User";
}
?>
