tripal_feature.api.inc 898 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Implements hook_chado_feature_schema()
  4. * Purpose: To add descriptions and foreign keys to default table description
  5. * Note: This array will be merged with the array from all other implementations
  6. *
  7. * @return
  8. * Array describing the feature table
  9. *
  10. * @ingroup tripal_feature
  11. */
  12. function tripal_stock_chado_feature_schema() {
  13. $description = array();
  14. $description['foreign keys']['organism'] = array(
  15. 'table' => 'organism',
  16. 'columns' => array(
  17. 'organism_id' => 'organism_id',
  18. ),
  19. );
  20. $description['foreign keys']['dbxref'] = array(
  21. 'table' => 'dbxref',
  22. 'columns' => array(
  23. 'dbxref_id' => 'dbxref_id',
  24. ),
  25. );
  26. $description['foreign keys']['cvterm'] = array(
  27. 'table' => 'cvterm',
  28. 'columns' => array(
  29. 'type_id' => 'cvterm_id',
  30. ),
  31. );
  32. return $description;
  33. }