function pmteam_schema in Drupal PM (Project Management) 7
Implements hook_schema().
File
- pmteam/
pmteam.install, line 47  - Install, uninstall and update functions for Project Management Team
 
Code
function pmteam_schema() {
  $schema['pmteam'] = array(
    'fields' => array(
      'vid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'nid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'mnid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'vid',
      'nid',
      'mnid',
    ),
    'indexes' => array(
      'vid' => array(
        'vid',
      ),
      'nid' => array(
        'nid',
      ),
      'mnid' => array(
        'mnid',
      ),
    ),
  );
  return $schema;
}