Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13532 anikendra 1
<?php
2
/**
3
 * This is Acl Schema file
4
 *
5
 * Use it to configure database for ACL
6
 *
7
 * @link          http://cakephp.org CakePHP(tm) Project
8
 * @package       app.Config.Schema
9
 * @since         CakePHP(tm) v 0.2.9
10
 */
11
 
12
/*
13
 *
14
 * Using the Schema command line utility
15
 * cake schema run create DbAcl
16
 *
17
 */
18
class DbAclSchema extends CakeSchema {
19
 
20
	public function before($event = array()) {
21
		return true;
22
	}
23
 
24
	public function after($event = array()) {
25
	}
26
 
27
	public $acos = array(
28
		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
29
		'parent_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
30
		'model' => array('type' => 'string', 'null' => true),
31
		'foreign_key' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
32
		'alias' => array('type' => 'string', 'null' => true),
33
		'lft' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
34
		'rght' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
35
		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
36
	);
37
 
38
	public $aros = array(
39
		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
40
		'parent_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
41
		'model' => array('type' => 'string', 'null' => true),
42
		'foreign_key' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
43
		'alias' => array('type' => 'string', 'null' => true),
44
		'lft' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
45
		'rght' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
46
		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
47
	);
48
 
49
	public $aros_acos = array(
50
		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
51
		'aro_id' => array('type' => 'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
52
		'aco_id' => array('type' => 'integer', 'null' => false, 'length' => 10),
53
		'_create' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2),
54
		'_read' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2),
55
		'_update' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2),
56
		'_delete' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2),
57
		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'ARO_ACO_KEY' => array('column' => array('aro_id', 'aco_id'), 'unique' => 1))
58
	);
59
 
60
}