<?php
/**
 * @package modx
 * @subpackage sqlsrv
 */
$xpdo_meta_map['modAccess']= array (
  'package' => 'modx',
  'version' => '1.1',
  'extends' => 'xPDOSimpleObject',
  'fields' => 
  array (
    'target' => '',
    'principal_class' => 'modPrincipal',
    'principal' => 0,
    'authority' => 9999,
    'policy' => 0,
  ),
  'fieldMeta' => 
  array (
    'target' => 
    array (
      'dbtype' => 'nvarchar',
      'precision' => '100',
      'phptype' => 'string',
      'null' => false,
      'default' => '',
      'index' => 'fk',
    ),
    'principal_class' => 
    array (
      'dbtype' => 'nvarchar',
      'precision' => '100',
      'phptype' => 'string',
      'null' => false,
      'default' => 'modPrincipal',
      'index' => 'index',
    ),
    'principal' => 
    array (
      'dbtype' => 'int',
      'phptype' => 'integer',
      'null' => false,
      'default' => 0,
      'index' => 'fk',
    ),
    'authority' => 
    array (
      'dbtype' => 'int',
      'phptype' => 'integer',
      'null' => false,
      'default' => 9999,
      'index' => 'index',
    ),
    'policy' => 
    array (
      'dbtype' => 'int',
      'phptype' => 'integer',
      'null' => false,
      'default' => 0,
      'index' => 'fk',
    ),
  ),
  'indexes' => 
  array (
    'target' => 
    array (
      'alias' => 'target',
      'primary' => false,
      'unique' => false,
      'type' => 'BTREE',
      'columns' => 
      array (
        'target' => 
        array (
          'length' => '',
          'collation' => 'A',
          'null' => false,
        ),
      ),
    ),
    'principal_class' => 
    array (
      'alias' => 'principal_class',
      'primary' => false,
      'unique' => false,
      'type' => 'BTREE',
      'columns' => 
      array (
        'principal_class' => 
        array (
          'length' => '',
          'collation' => 'A',
          'null' => false,
        ),
      ),
    ),
    'principal' => 
    array (
      'alias' => 'principal',
      'primary' => false,
      'unique' => false,
      'type' => 'BTREE',
      'columns' => 
      array (
        'principal' => 
        array (
          'length' => '',
          'collation' => 'A',
          'null' => false,
        ),
      ),
    ),
    'authority' => 
    array (
      'alias' => 'authority',
      'primary' => false,
      'unique' => false,
      'type' => 'BTREE',
      'columns' => 
      array (
        'authority' => 
        array (
          'length' => '',
          'collation' => 'A',
          'null' => false,
        ),
      ),
    ),
    'policy' => 
    array (
      'alias' => 'policy',
      'primary' => false,
      'unique' => false,
      'type' => 'BTREE',
      'columns' => 
      array (
        'policy' => 
        array (
          'length' => '',
          'collation' => 'A',
          'null' => false,
        ),
      ),
    ),
  ),
  'aggregates' => 
  array (
    'Policy' => 
    array (
      'class' => 'modAccessPolicy',
      'local' => 'policy',
      'foreign' => 'id',
      'owner' => 'foreign',
      'cardinality' => 'one',
    ),
    'Principal' => 
    array (
      'class' => 'modPrincipal',
      'local' => 'principal',
      'foreign' => 'id',
      'owner' => 'foreign',
      'cardinality' => 'one',
    ),
    'GroupPrincipal' => 
    array (
      'class' => 'modUserGroup',
      'local' => 'principal',
      'foreign' => 'id',
      'owner' => 'foreign',
      'cardinality' => 'one',
      'criteria' => 
      array (
        'local' => 
        array (
          'principal_class' => 'modUserGroup',
        ),
      ),
    ),
    'UserPrincipal' => 
    array (
      'class' => 'modUserGroup',
      'local' => 'principal',
      'foreign' => 'id',
      'owner' => 'foreign',
      'cardinality' => 'one',
      'criteria' => 
      array (
        'local' => 
        array (
          'principal_class' => 'modUser',
        ),
      ),
    ),
    'MinimumRole' => 
    array (
      'class' => 'modUserGroupRole',
      'local' => 'authority',
      'foreign' => 'authority',
      'owner' => 'local',
      'cardinality' => 'one',
    ),
  ),
);
