modscript.map.inc.php 1.9 KB

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