modusermessage.map.inc.php 2.1 KB

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