webmaster@1: 'The base table for nodes.', webmaster@1: 'fields' => array( webmaster@1: 'nid' => array( franck@19: 'description' => 'The primary identifier for a node.', webmaster@1: 'type' => 'serial', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE), webmaster@1: 'vid' => array( franck@19: 'description' => 'The current {node_revisions}.vid version identifier.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'type' => array( franck@19: 'description' => 'The {node_type}.type of this node.', webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 32, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => ''), webmaster@1: 'language' => array( franck@19: 'description' => 'The {languages}.language of this node.', webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 12, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => ''), webmaster@1: 'title' => array( franck@19: 'description' => 'The title of this node, always treated as non-markup plain text.', webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 255, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => ''), webmaster@1: 'uid' => array( franck@19: 'description' => 'The {users}.uid that owns this node; initially, this is the user that created it.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'status' => array( franck@19: 'description' => 'Boolean indicating whether the node is published (visible to non-administrators).', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 1), webmaster@1: 'created' => array( franck@19: 'description' => 'The Unix timestamp when the node was created.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'changed' => array( franck@19: 'description' => 'The Unix timestamp when the node was most recently saved.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'comment' => array( franck@19: 'description' => 'Whether comments are allowed on this node: 0 = no, 1 = read only, 2 = read/write.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'promote' => array( franck@19: 'description' => 'Boolean indicating whether the node should be displayed on the front page.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'moderate' => array( franck@19: 'description' => 'Previously, a boolean indicating whether the node was "in moderation"; mostly no longer used.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'sticky' => array( franck@19: 'description' => 'Boolean indicating whether the node should be displayed at the top of lists in which it appears.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'tnid' => array( franck@19: 'description' => 'The translation set id for this node, which equals the node id of the source post in each set.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'translate' => array( franck@19: 'description' => 'A boolean indicating whether this translation page needs to be updated.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: ), webmaster@1: 'indexes' => array( webmaster@1: 'node_changed' => array('changed'), webmaster@1: 'node_created' => array('created'), webmaster@1: 'node_moderate' => array('moderate'), webmaster@1: 'node_promote_status' => array('promote', 'status'), webmaster@1: 'node_status_type' => array('status', 'type', 'nid'), webmaster@1: 'node_title_type' => array('title', array('type', 4)), webmaster@1: 'node_type' => array(array('type', 4)), webmaster@1: 'uid' => array('uid'), webmaster@1: 'tnid' => array('tnid'), webmaster@1: 'translate' => array('translate'), webmaster@1: ), webmaster@1: 'unique keys' => array( webmaster@1: 'vid' => array('vid') webmaster@1: ), webmaster@1: 'primary key' => array('nid'), webmaster@1: ); webmaster@1: webmaster@1: $schema['node_access'] = array( franck@19: 'description' => 'Identifies which realm/grant pairs a user must possess in order to view, update, or delete specific nodes.', webmaster@1: 'fields' => array( webmaster@1: 'nid' => array( franck@19: 'description' => 'The {node}.nid this record affects.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'gid' => array( franck@19: 'description' => "The grant ID a user must possess in the specified realm to gain this row's privileges on the node.", webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'realm' => array( franck@19: 'description' => 'The realm in which the user must possess the grant ID. Each node access node can define one or more realms.', webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 255, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => ''), webmaster@1: 'grant_view' => array( franck@19: 'description' => 'Boolean indicating whether a user with the realm/grant pair can view this node.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0, webmaster@1: 'size' => 'tiny'), webmaster@1: 'grant_update' => array( franck@19: 'description' => 'Boolean indicating whether a user with the realm/grant pair can edit this node.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0, webmaster@1: 'size' => 'tiny'), webmaster@1: 'grant_delete' => array( franck@19: 'description' => 'Boolean indicating whether a user with the realm/grant pair can delete this node.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0, webmaster@1: 'size' => 'tiny') webmaster@1: ), webmaster@1: 'primary key' => array('nid', 'gid', 'realm'), webmaster@1: ); webmaster@1: webmaster@1: $schema['node_counter'] = array( franck@19: 'description' => 'Access statistics for {node}s.', webmaster@1: 'fields' => array( webmaster@1: 'nid' => array( franck@19: 'description' => 'The {node}.nid for these statistics.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'totalcount' => array( franck@19: 'description' => 'The total number of times the {node} has been viewed.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0, webmaster@1: 'size' => 'big'), webmaster@1: 'daycount' => array( franck@19: 'description' => 'The total number of times the {node} has been viewed today.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0, webmaster@1: 'size' => 'medium'), webmaster@1: 'timestamp' => array( franck@19: 'description' => 'The most recent time the {node} has been viewed.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0) webmaster@1: ), webmaster@1: 'primary key' => array('nid'), webmaster@1: ); webmaster@1: webmaster@1: $schema['node_revisions'] = array( franck@19: 'description' => 'Stores information about each saved version of a {node}.', webmaster@1: 'fields' => array( webmaster@1: 'nid' => array( franck@19: 'description' => 'The {node} this version belongs to.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'vid' => array( franck@19: 'description' => 'The primary identifier for this version.', webmaster@1: 'type' => 'serial', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE), webmaster@1: 'uid' => array( franck@19: 'description' => 'The {users}.uid that created this version.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'title' => array( franck@19: 'description' => 'The title of this version.', webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 255, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => ''), webmaster@1: 'body' => array( franck@19: 'description' => 'The body of this version.', webmaster@1: 'type' => 'text', webmaster@1: 'not null' => TRUE, webmaster@1: 'size' => 'big'), webmaster@1: 'teaser' => array( franck@19: 'description' => 'The teaser of this version.', webmaster@1: 'type' => 'text', webmaster@1: 'not null' => TRUE, webmaster@1: 'size' => 'big'), webmaster@1: 'log' => array( franck@19: 'description' => 'The log entry explaining the changes in this version.', webmaster@1: 'type' => 'text', webmaster@1: 'not null' => TRUE, webmaster@1: 'size' => 'big'), webmaster@1: 'timestamp' => array( franck@19: 'description' => 'A Unix timestamp indicating when this version was created.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0), webmaster@1: 'format' => array( franck@19: 'description' => "The input format used by this version's body.", webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0) webmaster@1: ), webmaster@1: 'indexes' => array( webmaster@1: 'nid' => array('nid'), webmaster@1: 'uid' => array('uid') webmaster@1: ), webmaster@1: 'primary key' => array('vid'), webmaster@1: ); webmaster@1: webmaster@1: $schema['node_type'] = array( franck@19: 'description' => 'Stores information about all defined {node} types.', webmaster@1: 'fields' => array( webmaster@1: 'type' => array( franck@19: 'description' => 'The machine-readable name of this type.', webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 32, webmaster@1: 'not null' => TRUE), webmaster@1: 'name' => array( franck@19: 'description' => 'The human-readable name of this type.', webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 255, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => ''), webmaster@1: 'module' => array( franck@19: 'description' => 'The base string used to construct callbacks corresponding to this node type.', webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 255, webmaster@1: 'not null' => TRUE), webmaster@1: 'description' => array( franck@19: 'description' => 'A brief description of this type.', webmaster@1: 'type' => 'text', webmaster@1: 'not null' => TRUE, webmaster@1: 'size' => 'medium'), webmaster@1: 'help' => array( franck@19: 'description' => 'Help information shown to the user when creating a {node} of this type.', webmaster@1: 'type' => 'text', webmaster@1: 'not null' => TRUE, webmaster@1: 'size' => 'medium'), webmaster@1: 'has_title' => array( franck@19: 'description' => 'Boolean indicating whether this type uses the {node}.title field.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'size' => 'tiny'), webmaster@1: 'title_label' => array( franck@19: 'description' => 'The label displayed for the title field on the edit form.', webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 255, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => ''), webmaster@1: 'has_body' => array( franck@19: 'description' => 'Boolean indicating whether this type uses the {node_revisions}.body field.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'size' => 'tiny'), webmaster@1: 'body_label' => array( franck@19: 'description' => 'The label displayed for the body field on the edit form.', webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 255, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => ''), webmaster@1: 'min_word_count' => array( franck@19: 'description' => 'The minimum number of words the body must contain.', webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'size' => 'small'), webmaster@1: 'custom' => array( franck@19: 'description' => 'A boolean indicating whether this type is defined by a module (FALSE) or by a user via a module like the Content Construction Kit (TRUE).', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0, webmaster@1: 'size' => 'tiny'), webmaster@1: 'modified' => array( franck@19: 'description' => 'A boolean indicating whether this type has been modified by an administrator; currently not used in any way.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0, webmaster@1: 'size' => 'tiny'), webmaster@1: 'locked' => array( franck@19: 'description' => 'A boolean indicating whether the administrator can change the machine name of this type.', webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0, webmaster@1: 'size' => 'tiny'), webmaster@1: 'orig_type' => array( franck@19: 'description' => 'The original machine-readable name of this node type. This may be different from the current type name if the locked field is 0.', webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 255, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => '') webmaster@1: ), webmaster@1: 'primary key' => array('type'), webmaster@1: ); webmaster@1: webmaster@1: return $schema; webmaster@1: } webmaster@1: