tripal_analysis.schema.api.inc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * Implements hook_chado_schema_v1_11_analysisfeatureprop()
  4. * Purpose: To describe the structure of 'analysisfeatureprop' to tripal
  5. * @see chado_insert_record()
  6. * @see chado_update_record()
  7. * @see chado_select_record()
  8. *
  9. * @return
  10. * An array describing the 'analysisfeatureprop' table
  11. *
  12. * @ingroup tripal_chado_v1.11_schema_api
  13. *
  14. */
  15. function tripal_core_chado_schema_v1_11_analysisfeatureprop() {
  16. $description = array(
  17. 'table' => 'analysisfeatureprop',
  18. 'fields' => array(
  19. 'analysisfeatureprop_id' => array(
  20. 'type' => 'serial',
  21. 'not NULL' => '1',
  22. ),
  23. 'analysisfeature_id' => array(
  24. 'type' => 'int',
  25. 'not NULL' => '1',
  26. ),
  27. 'type_id' => array(
  28. 'type' => 'int',
  29. 'not NULL' => '1',
  30. ),
  31. 'value' => array(
  32. 'type' => 'text',
  33. 'not NULL' => '',
  34. ),
  35. 'rank' => array(
  36. 'type' => 'int',
  37. 'not NULL' => '1',
  38. ),
  39. ),
  40. 'primary key' => array(
  41. 0 => 'analysisfeatureprop_id',
  42. ),
  43. 'unique keys' => array(
  44. 'analysisfeature_id_type_id_rank' => array(
  45. 0 => 'analysisfeature_id',
  46. 1 => 'type_id',
  47. 2 => 'rank',
  48. ),
  49. ),
  50. 'indexes' => array(
  51. ),
  52. 'foreign keys' => array(
  53. 'cvterm' => array(
  54. 'table' => 'cvterm',
  55. 'columns' => array(
  56. 'type_id' => 'cvterm_id',
  57. ),
  58. ),
  59. 'analysisfeature' => array(
  60. 'table' => 'analysisfeature',
  61. 'columns' => array(
  62. 'analysisfeature_id' => 'analysisfeature_id',
  63. ),
  64. ),
  65. ),
  66. );
  67. return $description;
  68. }