<?php
if (!defined("ROOT_PATH"))
{
	header("HTTP/1.1 403 Forbidden");
	exit;
}
class pjNotificationDepartmentModel extends pjAppModel
{
	protected $primaryKey = 'id';
	
	protected $table = 'notifications_departments';
	
	protected $schema = array(
		array('name' => 'id', 'type' => 'int', 'default' => ':NULL'),
		array('name' => 'notification_id', 'type' => 'int', 'default' => ':NULL'),
		array('name' => 'department_id', 'type' => 'int', 'default' => ':NULL')
	);
	
	public $i18n = array('name');
	
	public static function factory($attr=array())
	{
		return new pjNotificationDepartmentModel($attr);
	}
}
?>