modsession.map.inc.php 1.6 KB

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