modsession.map.inc.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modSession']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'session',
  10. 'extends' => 'xPDOObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'id' => '',
  18. 'access' => NULL,
  19. 'data' => NULL,
  20. ),
  21. 'fieldMeta' =>
  22. array (
  23. 'id' =>
  24. array (
  25. 'dbtype' => 'varchar',
  26. 'precision' => '191',
  27. 'phptype' => 'string',
  28. 'null' => false,
  29. 'index' => 'pk',
  30. 'default' => '',
  31. ),
  32. 'access' =>
  33. array (
  34. 'dbtype' => 'int',
  35. 'precision' => '20',
  36. 'phptype' => 'timestamp',
  37. 'null' => false,
  38. 'attributes' => 'unsigned',
  39. ),
  40. 'data' =>
  41. array (
  42. 'dbtype' => 'mediumtext',
  43. 'phptype' => 'string',
  44. ),
  45. ),
  46. 'indexes' =>
  47. array (
  48. 'PRIMARY' =>
  49. array (
  50. 'alias' => 'PRIMARY',
  51. 'primary' => true,
  52. 'unique' => true,
  53. 'type' => 'BTREE',
  54. 'columns' =>
  55. array (
  56. 'id' =>
  57. array (
  58. 'length' => '',
  59. 'collation' => 'A',
  60. 'null' => false,
  61. ),
  62. ),
  63. ),
  64. 'access' =>
  65. array (
  66. 'alias' => 'access',
  67. 'primary' => false,
  68. 'unique' => false,
  69. 'type' => 'BTREE',
  70. 'columns' =>
  71. array (
  72. 'access' =>
  73. array (
  74. 'length' => '',
  75. 'collation' => 'A',
  76. 'null' => false,
  77. ),
  78. ),
  79. ),
  80. ),
  81. 'validation' =>
  82. array (
  83. 'rules' =>
  84. array (
  85. 'id' =>
  86. array (
  87. 'invalid' =>
  88. array (
  89. 'type' => 'preg_match',
  90. 'rule' => '/^[0-9a-zA-Z,-]{22,191}$/',
  91. 'message' => 'session_err_invalid_id',
  92. ),
  93. ),
  94. ),
  95. ),
  96. );