| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- <?php
- /**
- * @package modx
- * @subpackage mysql
- */
- $xpdo_meta_map['modAccessPolicy']= array (
- 'package' => 'modx',
- 'version' => '1.1',
- 'table' => 'access_policies',
- 'extends' => 'xPDOSimpleObject',
- 'tableMeta' =>
- array (
- 'engine' => 'InnoDB',
- ),
- 'fields' =>
- array (
- 'name' => NULL,
- 'description' => NULL,
- 'parent' => 0,
- 'template' => 0,
- 'class' => '',
- 'data' => '{}',
- 'lexicon' => 'permissions',
- ),
- 'fieldMeta' =>
- array (
- 'name' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '191',
- 'phptype' => 'string',
- 'null' => false,
- 'index' => 'unique',
- ),
- 'description' =>
- array (
- 'dbtype' => 'mediumtext',
- 'phptype' => 'string',
- ),
- 'parent' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '10',
- 'attributes' => 'unsigned',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'template' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '10',
- 'attributes' => 'unsigned',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'class' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '191',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- 'index' => 'index',
- ),
- 'data' =>
- array (
- 'dbtype' => 'text',
- 'phptype' => 'json',
- 'default' => '{}',
- ),
- 'lexicon' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '191',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => 'permissions',
- ),
- ),
- 'indexes' =>
- array (
- 'name' =>
- array (
- 'alias' => 'name',
- 'primary' => false,
- 'unique' => true,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'name' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'parent' =>
- array (
- 'alias' => 'parent',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'parent' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'class' =>
- array (
- 'alias' => 'class',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'class' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'template' =>
- array (
- 'alias' => 'template',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'template' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- ),
- 'composites' =>
- array (
- 'Children' =>
- array (
- 'class' => 'modAccessPolicy',
- 'local' => 'id',
- 'foreign' => 'parent',
- 'owner' => 'local',
- 'cardinality' => 'many',
- ),
- ),
- 'aggregates' =>
- array (
- 'Parent' =>
- array (
- 'class' => 'modAccessPolicy',
- 'local' => 'parent',
- 'foreign' => 'id',
- 'owner' => 'foreign',
- 'cardinality' => 'one',
- ),
- 'Template' =>
- array (
- 'class' => 'modAccessPolicyTemplate',
- 'local' => 'template',
- 'foreign' => 'id',
- 'owner' => 'foreign',
- 'cardinality' => 'one',
- ),
- ),
- );
|