| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- <?php
- /**
- * @package modx
- * @subpackage mysql
- */
- $xpdo_meta_map['modUser']= array (
- 'package' => 'modx',
- 'version' => '1.1',
- 'table' => 'users',
- 'extends' => 'modPrincipal',
- 'tableMeta' =>
- array (
- 'engine' => 'InnoDB',
- ),
- 'fields' =>
- array (
- 'username' => '',
- 'password' => '',
- 'cachepwd' => '',
- 'class_key' => 'modUser',
- 'active' => 1,
- 'remote_key' => NULL,
- 'remote_data' => NULL,
- 'hash_class' => 'hashing.modNative',
- 'salt' => '',
- 'primary_group' => 0,
- 'session_stale' => NULL,
- 'sudo' => 0,
- 'createdon' => 0,
- ),
- 'fieldMeta' =>
- array (
- 'username' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '100',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- 'index' => 'unique',
- ),
- 'password' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '255',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- ),
- 'cachepwd' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '255',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- ),
- 'class_key' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '100',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => 'modUser',
- 'index' => 'index',
- ),
- 'active' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'phptype' => 'boolean',
- 'attributes' => 'unsigned',
- 'null' => false,
- 'default' => 1,
- ),
- 'remote_key' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '191',
- 'phptype' => 'string',
- 'null' => true,
- 'index' => 'index',
- ),
- 'remote_data' =>
- array (
- 'dbtype' => 'text',
- 'phptype' => 'json',
- 'null' => true,
- ),
- 'hash_class' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '100',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => 'hashing.modNative',
- ),
- 'salt' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '100',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- ),
- 'primary_group' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '10',
- 'phptype' => 'integer',
- 'attributes' => 'unsigned',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'session_stale' =>
- array (
- 'dbtype' => 'text',
- 'phptype' => 'array',
- 'null' => true,
- ),
- 'sudo' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'phptype' => 'boolean',
- 'attributes' => 'unsigned',
- 'null' => false,
- 'default' => 0,
- ),
- 'createdon' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '20',
- 'phptype' => 'timestamp',
- 'null' => false,
- 'default' => 0,
- ),
- ),
- 'indexes' =>
- array (
- 'username' =>
- array (
- 'alias' => 'username',
- 'primary' => false,
- 'unique' => true,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'username' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'class_key' =>
- array (
- 'alias' => 'class_key',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'class_key' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'remote_key' =>
- array (
- 'alias' => 'remote_key',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'remote_key' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'primary_group' =>
- array (
- 'alias' => 'primary_group',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'primary_group' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- ),
- 'composites' =>
- array (
- 'Profile' =>
- array (
- 'class' => 'modUserProfile',
- 'local' => 'id',
- 'foreign' => 'internalKey',
- 'cardinality' => 'one',
- 'owner' => 'local',
- ),
- 'UserSettings' =>
- array (
- 'class' => 'modUserSetting',
- 'local' => 'id',
- 'foreign' => 'user',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'UserGroupMembers' =>
- array (
- 'class' => 'modUserGroupMember',
- 'local' => 'id',
- 'foreign' => 'member',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'ActiveUsers' =>
- array (
- 'class' => 'modActiveUser',
- 'local' => 'id',
- 'foreign' => 'internalKey',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- ),
- 'aggregates' =>
- array (
- 'CreatedResources' =>
- array (
- 'class' => 'modResource',
- 'local' => 'id',
- 'foreign' => 'createdby',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'EditedResources' =>
- array (
- 'class' => 'modResource',
- 'local' => 'id',
- 'foreign' => 'editedby',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'DeletedResources' =>
- array (
- 'class' => 'modResource',
- 'local' => 'id',
- 'foreign' => 'deletedby',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'PublishedResources' =>
- array (
- 'class' => 'modResource',
- 'local' => 'id',
- 'foreign' => 'publishedby',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'SentMessages' =>
- array (
- 'class' => 'modUserMessage',
- 'local' => 'id',
- 'foreign' => 'sender',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'ReceivedMessages' =>
- array (
- 'class' => 'modUserMessage',
- 'local' => 'id',
- 'foreign' => 'recipient',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'PrimaryGroup' =>
- array (
- 'class' => 'modUserGroup',
- 'local' => 'primary_group',
- 'foreign' => 'id',
- 'cardinality' => 'one',
- 'owner' => 'foreign',
- ),
- ),
- );
|