<?php
class Note extends AppModel {
	var $name = 'Note';
	var $displayField = 'name';
	var $validate = array(
		'note_group_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
			),
		),
		'name' => array(
			'notempty' => array(
				'rule' => array('notempty'),
			),
			'unique' => array(
				'rule' => array('unique'),
			),
		),
	);

	var $belongsTo = array(
		'NoteGroup' => array(
			'className' => 'NoteGroup',
			'foreignKey' => 'note_group_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
