db_acl.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /*DbAcl schema generated on: 2007-11-24 15:11:13 : 1195945453*/
  3. /**
  4. * This is Acl Schema file
  5. *
  6. * Use it to configure database for ACL
  7. *
  8. * PHP 5
  9. *
  10. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  11. * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
  12. *
  13. * Licensed under The MIT License
  14. * Redistributions of files must retain the above copyright notice.
  15. *
  16. * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
  17. * @link http://cakephp.org CakePHP(tm) Project
  18. * @package app.Config.Schema
  19. * @since CakePHP(tm) v 0.2.9
  20. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  21. */
  22. /*
  23. *
  24. * Using the Schema command line utility
  25. * cake schema run create DbAcl
  26. *
  27. */
  28. class DbAclSchema extends CakeSchema {
  29. public $name = 'DbAcl';
  30. public function before($event = array()) {
  31. return true;
  32. }
  33. public function after($event = array()) {
  34. }
  35. public $acos = array(
  36. 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
  37. 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
  38. 'model' => array('type'=>'string', 'null' => true),
  39. 'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
  40. 'alias' => array('type'=>'string', 'null' => true),
  41. 'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
  42. 'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
  43. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
  44. );
  45. public $aros = array(
  46. 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
  47. 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
  48. 'model' => array('type'=>'string', 'null' => true),
  49. 'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
  50. 'alias' => array('type'=>'string', 'null' => true),
  51. 'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
  52. 'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
  53. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
  54. );
  55. public $aros_acos = array(
  56. 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
  57. 'aro_id' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
  58. 'aco_id' => array('type'=>'integer', 'null' => false, 'length' => 10),
  59. '_create' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
  60. '_read' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
  61. '_update' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
  62. '_delete' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
  63. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'ARO_ACO_KEY' => array('column' => array('aro_id', 'aco_id'), 'unique' => 1))
  64. );
  65. }