<?php
class User extends AppModel {

	var $name = 'User';
	var $useTable = 'users';
	var $validate = array(
		'first_name' => array(VALID_NOT_EMPTY),
		'last_name' => array(VALID_NOT_EMPTY),
		'username' => array(VALID_NOT_EMPTY),
		'password' => array('alphaNumeric')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $hasOne = array(
			'Profile' => array('className' => 'Profile',
								'foreignKey' => 'user_id',
								'dependent' => false,
								'conditions' => '',
								'fields' => '',
								'order' => ''
			)
	);

	var $hasMany = array(
			'Comment' => array('className' => 'Comment',
								'foreignKey' => 'user_id',
								'dependent' => false,
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'limit' => '',
								'offset' => '',
								'exclusive' => '',
								'finderQuery' => '',
								'counterQuery' => ''
			)
	);

}
?>
