function node_authlink_schema in Node authorize link 7
Same name and namespace in other branches
- 8 node_authlink.install \node_authlink_schema()
Implements hook_schema().
File
- ./node_authlink.install, line 11 
- Installation and update of the node_authlink module.
Code
function node_authlink_schema() {
  $schema['node_authlink_nodes'] = array(
    'description' => 'Table for store authorization keys.',
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'authkey' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
      ),
      'created' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}