modusermessage.map.inc.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modUserMessage']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'user_messages',
  10. 'extends' => 'xPDOSimpleObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'type' => '',
  18. 'subject' => '',
  19. 'message' => '',
  20. 'sender' => 0,
  21. 'recipient' => 0,
  22. 'private' => 0,
  23. 'date_sent' => NULL,
  24. 'read' => 0,
  25. ),
  26. 'fieldMeta' =>
  27. array (
  28. 'type' =>
  29. array (
  30. 'dbtype' => 'varchar',
  31. 'precision' => '15',
  32. 'phptype' => 'string',
  33. 'null' => false,
  34. 'default' => '',
  35. ),
  36. 'subject' =>
  37. array (
  38. 'dbtype' => 'varchar',
  39. 'precision' => '191',
  40. 'phptype' => 'string',
  41. 'null' => false,
  42. 'default' => '',
  43. ),
  44. 'message' =>
  45. array (
  46. 'dbtype' => 'text',
  47. 'phptype' => 'string',
  48. 'null' => false,
  49. 'default' => '',
  50. ),
  51. 'sender' =>
  52. array (
  53. 'dbtype' => 'int',
  54. 'precision' => '10',
  55. 'phptype' => 'integer',
  56. 'null' => false,
  57. 'default' => 0,
  58. ),
  59. 'recipient' =>
  60. array (
  61. 'dbtype' => 'int',
  62. 'precision' => '10',
  63. 'phptype' => 'integer',
  64. 'null' => false,
  65. 'default' => 0,
  66. ),
  67. 'private' =>
  68. array (
  69. 'dbtype' => 'tinyint',
  70. 'precision' => '4',
  71. 'phptype' => 'integer',
  72. 'null' => false,
  73. 'default' => 0,
  74. ),
  75. 'date_sent' =>
  76. array (
  77. 'dbtype' => 'datetime',
  78. 'phptype' => 'datetime',
  79. 'null' => true,
  80. 'default' => NULL,
  81. ),
  82. 'read' =>
  83. array (
  84. 'dbtype' => 'tinyint',
  85. 'precision' => '1',
  86. 'phptype' => 'integer',
  87. 'null' => false,
  88. 'default' => 0,
  89. ),
  90. ),
  91. 'aggregates' =>
  92. array (
  93. 'Sender' =>
  94. array (
  95. 'class' => 'modUser',
  96. 'local' => 'sender',
  97. 'foreign' => 'id',
  98. 'cardinality' => 'one',
  99. 'owner' => 'foreign',
  100. ),
  101. 'Recipient' =>
  102. array (
  103. 'class' => 'modUser',
  104. 'local' => 'recipient',
  105. 'foreign' => 'id',
  106. 'cardinality' => 'one',
  107. 'owner' => 'foreign',
  108. ),
  109. ),
  110. );