modactiveuser.map.inc.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modActiveUser']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'active_users',
  10. 'extends' => 'xPDOObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'internalKey' => 0,
  18. 'username' => '',
  19. 'lasthit' => 0,
  20. 'id' => NULL,
  21. 'action' => '',
  22. 'ip' => '',
  23. ),
  24. 'fieldMeta' =>
  25. array (
  26. 'internalKey' =>
  27. array (
  28. 'dbtype' => 'int',
  29. 'precision' => '9',
  30. 'phptype' => 'integer',
  31. 'null' => false,
  32. 'default' => 0,
  33. 'index' => 'pk',
  34. ),
  35. 'username' =>
  36. array (
  37. 'dbtype' => 'varchar',
  38. 'precision' => '50',
  39. 'phptype' => 'string',
  40. 'null' => false,
  41. 'default' => '',
  42. ),
  43. 'lasthit' =>
  44. array (
  45. 'dbtype' => 'int',
  46. 'precision' => '20',
  47. 'phptype' => 'timestamp',
  48. 'null' => false,
  49. 'default' => 0,
  50. ),
  51. 'id' =>
  52. array (
  53. 'dbtype' => 'int',
  54. 'precision' => '10',
  55. 'phptype' => 'integer',
  56. 'null' => true,
  57. ),
  58. 'action' =>
  59. array (
  60. 'dbtype' => 'varchar',
  61. 'precision' => '191',
  62. 'phptype' => 'string',
  63. 'null' => false,
  64. 'default' => '',
  65. ),
  66. 'ip' =>
  67. array (
  68. 'dbtype' => 'varchar',
  69. 'precision' => '20',
  70. 'phptype' => 'string',
  71. 'null' => false,
  72. 'default' => '',
  73. ),
  74. ),
  75. 'indexes' =>
  76. array (
  77. 'internalKey' =>
  78. array (
  79. 'alias' => 'internalKey',
  80. 'primary' => true,
  81. 'unique' => true,
  82. 'type' => 'BTREE',
  83. 'columns' =>
  84. array (
  85. 'internalKey' =>
  86. array (
  87. 'length' => '',
  88. 'collation' => 'A',
  89. 'null' => false,
  90. ),
  91. ),
  92. ),
  93. ),
  94. 'aggregates' =>
  95. array (
  96. 'User' =>
  97. array (
  98. 'class' => 'modUser',
  99. 'local' => 'internalKey',
  100. 'foreign' => 'id',
  101. 'cardinality' => 'one',
  102. 'owner' => 'foreign',
  103. ),
  104. ),
  105. );