2
/*DbAcl schema generated on: 2007-11-24 15:11:13 : 1195945453*/
5
* This is Acl Schema file
7
* Use it to configure database for ACL
11
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
12
* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
14
* Licensed under The MIT License
15
* Redistributions of files must retain the above copyright notice.
17
* @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
18
* @link http://cakephp.org CakePHP(tm) Project
20
* @subpackage cake.app.config.sql
21
* @since CakePHP(tm) v 0.2.9
22
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
27
* Using the Schema command line utility
28
* cake schema run create DbAcl
31
class DbAclSchema extends CakeSchema {
35
function before($event = array()) {
39
function after($event = array()) {
43
'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
44
'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
45
'model' => array('type'=>'string', 'null' => true),
46
'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
47
'alias' => array('type'=>'string', 'null' => true),
48
'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
49
'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
50
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
54
'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
55
'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
56
'model' => array('type'=>'string', 'null' => true),
57
'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
58
'alias' => array('type'=>'string', 'null' => true),
59
'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
60
'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
61
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
64
var $aros_acos = array(
65
'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
66
'aro_id' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
67
'aco_id' => array('type'=>'integer', 'null' => false, 'length' => 10),
68
'_create' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
69
'_read' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
70
'_update' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
71
'_delete' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
72
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'ARO_ACO_KEY' => array('column' => array('aro_id', 'aco_id'), 'unique' => 1))