~tsep-dev/tsep/0.9-beta

« back to all changes in this revision

Viewing changes to branches/symfony/cake/console/templates/skel/config/schema/db_acl.php

  • Committer: geoffreyfishing
  • Date: 2011-01-11 23:46:12 UTC
  • Revision ID: svn-v4:ae0de26e-ed09-4cbe-9a20-e40b4c60ac6c::125
Created a symfony branch for future migration to symfony

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/*DbAcl schema generated on: 2007-11-24 15:11:13 : 1195945453*/
 
3
 
 
4
/**
 
5
 * This is Acl Schema file
 
6
 *
 
7
 * Use it to configure database for ACL
 
8
 *
 
9
 * PHP versions 4 and 5
 
10
 *
 
11
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 
12
 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 
13
 *
 
14
 * Licensed under The MIT License
 
15
 * Redistributions of files must retain the above copyright notice.
 
16
 *
 
17
 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 
18
 * @link          http://cakephp.org CakePHP(tm) Project
 
19
 * @package       cake
 
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)
 
23
 */
 
24
 
 
25
/*
 
26
 *
 
27
 * Using the Schema command line utility
 
28
 * cake schema run create DbAcl
 
29
 *
 
30
 */
 
31
class DbAclSchema extends CakeSchema {
 
32
 
 
33
        var $name = 'DbAcl';
 
34
 
 
35
        function before($event = array()) {
 
36
                return true;
 
37
        }
 
38
 
 
39
        function after($event = array()) {
 
40
        }
 
41
 
 
42
        var $acos = 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))
 
51
                );
 
52
 
 
53
        var $aros = array(
 
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))
 
62
                );
 
63
 
 
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))
 
73
                );
 
74
 
 
75
}