modactiveuser.map.inc.php 1.9 KB

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