You are here

function nat_schema in Node Auto Term [NAT] 7

Same name and namespace in other branches
  1. 6.2 nat.install \nat_schema()
  2. 6 nat.install \nat_schema()
  3. 7.2 nat.install \nat_schema()

Implements hook_install().

File

./nat.install, line 19

Code

function nat_schema() {
  $schema['nat'] = array(
    'description' => 'NAT module: establish relationship between nids and tids.',
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'Index: Node ID.',
      ),
      'tid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'Term ID.',
      ),
      'vid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'Vocabulary ID.',
      ),
    ),
    'indexes' => array(
      'nid' => array(
        'nid',
      ),
    ),
  );
  return $schema;
}