2 * Implements hook_schema().
4 function {{ machine_name }}_schema() {
5 $schema['node'] = array(
6 // Example (partial) specification for table "node".
7 'description' => 'The base table for nodes.',
10 'description' => 'The primary identifier for a node.',
16 'description' => 'The current {node_revision}.vid version identifier.',
23 'description' => 'The {node_type} of this node.',
30 'description' => 'The title of this node, always treated as non-markup plain text.',
38 'node_changed' => array('changed'),
39 'node_created' => array('created'),
41 'unique keys' => array(
42 'nid_vid' => array('nid', 'vid'),
43 'vid' => array('vid'),
45 // For documentation purposes only; foreign keys are not created in the
47 'foreign keys' => array(
48 'node_revision' => array(
49 'table' => 'node_revision',
50 'columns' => array('vid' => 'vid'),
52 'node_author' => array(
54 'columns' => array('uid' => 'uid'),
57 'primary key' => array('nid'),