auditrequest.map.inc.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?php
  2. /**
  3. * AuditRequest - Map xPDO MySQL
  4. * Généré depuis schema/audit_express.mysql.schema.xml
  5. */
  6. $xpdo_meta_map['AuditRequest'] = [
  7. 'package' => 'audit_express',
  8. 'version' => '1.1',
  9. 'table' => 'audit_requests',
  10. 'extends' => 'xPDOSimpleObject',
  11. 'fields' => [
  12. 'audit_uid' => '',
  13. 'pack_id' => '',
  14. 'answers' => null,
  15. 'optional_data' => null,
  16. 'result' => null,
  17. 'email' => null,
  18. 'status' => 'draft',
  19. 'ip_hash' => null,
  20. 'step' => 0,
  21. 'created_at' => null,
  22. 'updated_at' => null,
  23. ],
  24. 'fieldMeta' => [
  25. 'audit_uid' => [
  26. 'dbtype' => 'varchar',
  27. 'precision' => '36',
  28. 'phptype' => 'string',
  29. 'null' => false,
  30. 'default' => '',
  31. 'index' => 'unique',
  32. ],
  33. 'pack_id' => [
  34. 'dbtype' => 'varchar',
  35. 'precision' => '64',
  36. 'phptype' => 'string',
  37. 'null' => false,
  38. 'default' => '',
  39. ],
  40. 'answers' => [
  41. 'dbtype' => 'text',
  42. 'phptype' => 'string',
  43. 'null' => true,
  44. ],
  45. 'optional_data' => [
  46. 'dbtype' => 'text',
  47. 'phptype' => 'string',
  48. 'null' => true,
  49. ],
  50. 'result' => [
  51. 'dbtype' => 'mediumtext',
  52. 'phptype' => 'string',
  53. 'null' => true,
  54. ],
  55. 'email' => [
  56. 'dbtype' => 'varchar',
  57. 'precision' => '255',
  58. 'phptype' => 'string',
  59. 'null' => true,
  60. ],
  61. 'status' => [
  62. 'dbtype' => 'enum',
  63. 'precision' => "'draft','completed','emailed'",
  64. 'phptype' => 'string',
  65. 'null' => false,
  66. 'default' => 'draft',
  67. ],
  68. 'ip_hash' => [
  69. 'dbtype' => 'varchar',
  70. 'precision' => '64',
  71. 'phptype' => 'string',
  72. 'null' => true,
  73. ],
  74. 'step' => [
  75. 'dbtype' => 'tinyint',
  76. 'precision' => '3',
  77. 'phptype' => 'integer',
  78. 'null' => false,
  79. 'default' => 0,
  80. ],
  81. 'created_at' => [
  82. 'dbtype' => 'datetime',
  83. 'phptype' => 'datetime',
  84. 'null' => false,
  85. ],
  86. 'updated_at' => [
  87. 'dbtype' => 'datetime',
  88. 'phptype' => 'datetime',
  89. 'null' => false,
  90. ],
  91. ],
  92. 'indexes' => [
  93. 'PRIMARY' => [
  94. 'alias' => 'PRIMARY',
  95. 'primary' => true,
  96. 'unique' => true,
  97. 'type' => 'BTREE',
  98. 'columns' => ['id' => ['length' => '', 'collation' => 'A', 'null' => false]],
  99. ],
  100. 'audit_uid' => [
  101. 'alias' => 'audit_uid',
  102. 'primary' => false,
  103. 'unique' => true,
  104. 'type' => 'BTREE',
  105. 'columns' => ['audit_uid' => ['length' => '', 'collation' => 'A', 'null' => false]],
  106. ],
  107. 'status' => [
  108. 'alias' => 'status',
  109. 'primary' => false,
  110. 'unique' => false,
  111. 'type' => 'BTREE',
  112. 'columns' => ['status' => ['length' => '', 'collation' => 'A', 'null' => false]],
  113. ],
  114. 'created_at' => [
  115. 'alias' => 'created_at',
  116. 'primary' => false,
  117. 'unique' => false,
  118. 'type' => 'BTREE',
  119. 'columns' => ['created_at' => ['length' => '', 'collation' => 'A', 'null' => false]],
  120. ],
  121. ],
  122. ];