db_acl.php

Go to the documentation of this file.
00001 <?php
00002 /* SVN FILE: $Id: cake_2console_2libs_2templates_2skel_2config_2sql_2db__acl_8php-source.html 580 2008-07-01 14:45:49Z gwoo $ */
00003 /*DbAcl schema generated on: 2007-11-24 15:11:13 : 1195945453*/
00004 /**
00005  * This is Acl Schema file
00006  *
00007  * Use it to configure database for ACL
00008  *
00009  * PHP versions 4 and 5
00010  *
00011  * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
00012  * Copyright 2005-2008, Cake Software Foundation, Inc.
00013  *                              1785 E. Sahara Avenue, Suite 490-204
00014  *                              Las Vegas, Nevada 89104
00015  *
00016  * Licensed under The MIT License
00017  * Redistributions of files must retain the above copyright notice.
00018  *
00019  * @filesource
00020  * @copyright       Copyright 2005-2008, Cake Software Foundation, Inc.
00021  * @link                http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
00022  * @package         cake
00023  * @subpackage      cake.app.config.sql
00024  * @since           CakePHP(tm) v 0.2.9
00025  * @version         $Revision: 580 $
00026  * @modifiedby      $LastChangedBy: gwoo $
00027  * @lastmodified    $Date: 2008-07-01 09:45:49 -0500 (Tue, 01 Jul 2008) $
00028  * @license         http://www.opensource.org/licenses/mit-license.php The MIT License
00029  */
00030 /*
00031  *
00032  * Using the Schema command line utility
00033  * cake schema run create DbAcl
00034  *
00035  */
00036 class DbAclSchema extends CakeSchema {
00037 
00038     var $name = 'DbAcl';
00039 
00040     function before($event = array()) {
00041         return true;
00042     }
00043 
00044     function after($event = array()) {
00045     }
00046 
00047     var $acos = array(
00048             'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
00049             'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
00050             'model' => array('type'=>'string', 'null' => true),
00051             'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
00052             'alias' => array('type'=>'string', 'null' => true),
00053             'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
00054             'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
00055             'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
00056         );
00057 
00058     var $aros = array(
00059             'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
00060             'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
00061             'model' => array('type'=>'string', 'null' => true),
00062             'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
00063             'alias' => array('type'=>'string', 'null' => true),
00064             'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
00065             'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
00066             'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
00067         );
00068 
00069     var $aros_acos = array(
00070             'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
00071             'aro_id' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
00072             'aco_id' => array('type'=>'integer', 'null' => false, 'length' => 10),
00073             '_create' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
00074             '_read' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
00075             '_update' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
00076             '_delete' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
00077             'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'ARO_ACO_KEY' => array('column' => array('aro_id', 'aco_id'), 'unique' => 1))
00078         );
00079 
00080 }
00081 ?>